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

* [Bug c++/37260] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
@ 2008-08-27 22:48 ` mrs at apple dot com
  2008-08-28  0:20 ` paolo dot carlini at oracle dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mrs at apple dot com @ 2008-08-27 22:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mrs at apple dot com  2008-08-27 22:47 -------
I think reshape_init_r doesn't handle init when it ia error_mark_node.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] infinite loop in init
  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
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-28  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2008-08-28 00:18 -------
Indeed, checking init for error_mark_node appear to fix the problem. I'll take
this...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-28 00:18:56
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.1 / 4.2 / 4.3 / 4.4 Regression] infinite loop in init
  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 ` paolo dot carlini at oracle dot com
  2008-08-28 23:40 ` paolo at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-28 16:10 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #3 from paolo dot carlini at oracle dot com  2008-08-28 16:09 -------
Doesn't reproduce with 4.0.4:

37260.C: In function ‘int main()’:
37260.C:8: error: ‘PTHREAD_ONCE_INITIALIZER’ was not declared in this scope
37260.C:9: error: initializer for ‘pthread_once_t’ must be brace-enclosed


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.0 4.4.0                 |4.1.0 4.2.0 4.3.0 4.4.0
      Known to work|                            |4.0.4
            Summary|infinite loop in init       |[4.1 / 4.2 / 4.3 / 4.4
                   |                            |Regression] infinite loop in
                   |                            |init


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.1 / 4.2 / 4.3 / 4.4 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (2 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-08-28 23:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2008-08-28 23:39 -------
Subject: Bug 37260

Author: paolo
Date: Thu Aug 28 23:37:41 2008
New Revision: 139740

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139740
Log:
/cp
2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37260
        * decl.c (reshape_init_r): Check init for error_mark_node.

/testsuite
2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37260
        * g++.dg/parse/crash44.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/parse/crash44.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.1 / 4.2 / 4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (3 preceding siblings ...)
  2008-08-28 23:40 ` paolo at gcc dot gnu dot org
@ 2008-08-28 23:41 ` 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
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-28 23:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2008-08-28 23:39 -------
Fixed for 4.4.0.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW
      Known to fail|4.1.0 4.2.0 4.3.0 4.4.0     |4.1.0 4.2.0 4.3.0
            Summary|[4.1 / 4.2 / 4.3 / 4.4      |[4.1 / 4.2 / 4.3 Regression]
                   |Regression] infinite loop in|infinite loop in init
                   |init                        |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.1/4.2/4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (4 preceding siblings ...)
  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 ` pinskia at gcc dot gnu dot org
  2008-09-17 14:44 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-29  4:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.1/4.2/4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (5 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-17 14:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (6 preceding siblings ...)
  2008-09-17 14:44 ` rguenth at gcc dot gnu dot org
@ 2009-03-31 20:58 ` jsm28 at gcc dot gnu dot org
  2009-08-04 12:42 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-03-31 20:58 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3 Regression]        |[4.3 Regression] infinite
                   |infinite loop in init       |loop in init
   Target Milestone|4.2.5                       |4.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (7 preceding siblings ...)
  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
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (8 preceding siblings ...)
  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
  10 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-26 18:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from paolo dot carlini at oracle dot com  2009-12-26 18:36 -------
Will not be fixed in 4_3-branch.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.3.5                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37260


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

* [Bug c++/37260] [4.3 Regression] infinite loop in init
  2008-08-27 22:47 [Bug c++/37260] New: infinite loop in init mrs at apple dot com
                   ` (9 preceding siblings ...)
  2009-12-26 18:36 ` paolo dot carlini at oracle dot com
@ 2009-12-26 21:48 ` paolo dot carlini at oracle dot com
  10 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-26 21:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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).