public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37260]  New: infinite loop in init
@ 2008-08-27 22:47 mrs at apple dot com
  2008-08-27 22:48 ` [Bug c++/37260] " mrs at apple dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: mrs at apple dot com @ 2008-08-27 22:47 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-12-26 21:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
2008-08-27 22:48 ` [Bug c++/37260] " mrs at apple dot com
2008-08-28  0:20 ` paolo dot carlini at oracle dot com
2008-08-28 16:10 ` [Bug c++/37260] [4.1 / 4.2 / 4.3 / 4.4 Regression] " paolo dot carlini at oracle dot com
2008-08-28 23:40 ` paolo at gcc dot gnu dot org
2008-08-28 23:41 ` [Bug c++/37260] [4.1 / 4.2 / 4.3 " paolo dot carlini at oracle dot com
2008-08-29  4:40 ` [Bug c++/37260] [4.1/4.2/4.3 " pinskia at gcc dot gnu dot org
2008-09-17 14:44 ` rguenth at gcc dot gnu dot org
2009-03-31 20:58 ` [Bug c++/37260] [4.3 " jsm28 at gcc dot gnu dot org
2009-08-04 12:42 ` rguenth at gcc dot gnu dot org
2009-12-26 18:36 ` paolo dot carlini at oracle dot com
2009-12-26 21:48 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).