This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37260] New: infinite loop in init
- From: "mrs at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2008 22:46:23 -0000
- Subject: [Bug c++/37260] New: infinite loop in init
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc version 4.4.0 20080827 (experimental) [trunk revision 138965] (GCC)
produces:
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
/tmp/t.cc:9: error: initializer for ?pthread_once_t? must be brace-enclosed
[...]
for
struct pthread_once_t { };
struct test {
pthread_once_t once;
};
int main(void) {
struct test foo = {
once: PTHREAD_ONCE_INITIALIZER
};
return 0;
}
:-(
--
Summary: infinite loop in init
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrs at apple dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260