Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libpthread
This is the simplest program to repeat the problem with g++ 5.1 and
NetBSD's pthread_types.h:
#include <pthread.h>
class foo {
pthread_mutex_t m;
public:
constexpr foo() : m(PTHREAD_MUTEX_INITIALIZER) {}
};
(plus or minus typos since I typed it by hand from the virtual machine
console)
If there's some way to say "pthread_types.h is even more of a system
header than with -isystem and compilers should not generate errors",
then I'd like to hear it.
Also, if this is really the correct DR, I'm not sure how a flaw in the
standard translates to "gcc bug"
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1911
(especially when there's no fix for the defect in the standard)
So, I really don't see how to sweep the issue under the rug except by a)
figuring out a workaround b) labeling all C++ compilers which happen to
implement the current standard as incompatible with NetBSD.
Home |
Main Index |
Thread Index |
Old Index