public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42331]  New: [4.4/4.5 regression] ICE in error recovery
@ 2009-12-08 10:57 doko at ubuntu dot com
  2009-12-08 11:01 ` [Bug c++/42331] " paolo dot carlini at oracle dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: doko at ubuntu dot com @ 2009-12-08 10:57 UTC (permalink / raw)
  To: gcc-bugs

seen with trunk 20091208 and 4.4 branch 20091130, not with 4.3.4:

$ g++ -g Mesh.ii
In file included from /usr/include/c++/4.4/ext/new_allocator.h:34,
                 from
/usr/include/c++/4.4/x86_64-linux-gnu/bits/c++allocator.h:35,
                 from /usr/include/c++/4.4/bits/allocator.h:49,
                 from /usr/include/c++/4.4/string:44,
                 from /usr/include/c++/4.4/bits/locale_classes.h:43,
                 from /usr/include/c++/4.4/bits/ios_base.h:44,
                 from /usr/include/c++/4.4/ios:44,
                 from /usr/include/c++/4.4/ostream:41,
                 from /usr/include/c++/4.4/iostream:41,
                 from
/home/cesare/Programmi/changemesh/project/source/Mesh.cpp:4:
/usr/include/c++/4.4/new:91: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.4/new:92: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.4/new:95: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.4/new:96: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.4/new:101: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.4/new:102: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/home/cesare/Programmi/changemesh/project/source/Mesh.cpp: In constructor
'Mesh::Mesh(const char*)':
/home/cesare/Programmi/changemesh/project/source/Mesh.cpp:20: warning: extended
initializer lists only available with -std=c++0x or -std=gnu++0x
/home/cesare/Programmi/changemesh/project/source/Mesh.cpp:20: error: array must
be initialized with a brace-enclosed initializer
/home/cesare/Programmi/changemesh/project/source/Mesh.cpp:20: confused by
earlier errors, bailing out
Preprocessed source stored into /tmp/ccHoqRKs.out file, please attach this to
your bugreport.


-- 
           Summary: [4.4/4.5 regression] ICE in error recovery
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
@ 2009-12-08 11:01 ` paolo dot carlini at oracle dot com
  2009-12-08 11:05 ` doko at ubuntu dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2009-12-08 11:01 -------
We are still missing Mesh.ii. And, please, do your best to reduce it before
attaching it, thanks in advance...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
  2009-12-08 11:01 ` [Bug c++/42331] " paolo dot carlini at oracle dot com
@ 2009-12-08 11:05 ` doko at ubuntu dot com
  2009-12-08 11:06 ` paolo dot carlini at oracle dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: doko at ubuntu dot com @ 2009-12-08 11:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from doko at ubuntu dot com  2009-12-08 11:04 -------
Created an attachment (id=19257)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19257&action=view)
preprocessed source


-- 


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
  2009-12-08 11:01 ` [Bug c++/42331] " paolo dot carlini at oracle dot com
  2009-12-08 11:05 ` doko at ubuntu dot com
@ 2009-12-08 11:06 ` paolo dot carlini at oracle dot com
  2009-12-08 11:06 ` paolo dot carlini at oracle dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-08 11:06:40
               date|                            |


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (2 preceding siblings ...)
  2009-12-08 11:06 ` paolo dot carlini at oracle dot com
@ 2009-12-08 11:06 ` paolo dot carlini at oracle dot com
  2009-12-08 11:08 ` doko at ubuntu dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2009-12-08 11:06 -------
Thanks ;)


-- 


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (4 preceding siblings ...)
  2009-12-08 11:08 ` doko at ubuntu dot com
@ 2009-12-08 11:08 ` rguenth at gcc dot gnu dot org
  2009-12-08 11:15 ` paolo dot carlini at oracle dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-08 11:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5
   Target Milestone|---                         |4.4.3


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (3 preceding siblings ...)
  2009-12-08 11:06 ` paolo dot carlini at oracle dot com
@ 2009-12-08 11:08 ` doko at ubuntu dot com
  2009-12-08 11:08 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: doko at ubuntu dot com @ 2009-12-08 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from doko at ubuntu dot com  2009-12-08 11:08 -------
sorry, didn't see the comment before attaching the file


-- 


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (5 preceding siblings ...)
  2009-12-08 11:08 ` rguenth at gcc dot gnu dot org
@ 2009-12-08 11:15 ` paolo dot carlini at oracle dot com
  2009-12-08 11:19 ` paolo dot carlini at oracle dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2009-12-08 11:14 -------
No problem. Please, try to figure out something small, shouldn't be that
difficult, I think it should involve only 'int typele[7][2]' vs 'typele={0}'


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (6 preceding siblings ...)
  2009-12-08 11:15 ` paolo dot carlini at oracle dot com
@ 2009-12-08 11:19 ` paolo dot carlini at oracle dot com
  2009-12-08 11:19 ` paolo dot carlini at oracle dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
   Last reconfirmed|2009-12-08 11:19:20         |2009-12-08 11:19:32
               date|                            |


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (7 preceding siblings ...)
  2009-12-08 11:19 ` paolo dot carlini at oracle dot com
@ 2009-12-08 11:19 ` paolo dot carlini at oracle dot com
  2009-12-08 11:22 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2009-12-08 11:19 -------
This is enough:

class Mesh
{
public:
  Mesh(const char*)
  { typele={0}; }

private:
  int typele[7][2];
};

Mesh m(0);


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2009-12-08 11:06:40         |2009-12-08 11:19:20
               date|                            |


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE in error recovery
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (8 preceding siblings ...)
  2009-12-08 11:19 ` paolo dot carlini at oracle dot com
@ 2009-12-08 11:22 ` paolo dot carlini at oracle dot com
  2009-12-22 18:49 ` [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-08 11:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from paolo dot carlini at oracle dot com  2009-12-08 11:21 -------
Let's CC Jason, maybe it's just matter of robustifying a tad the initializer
list code.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (9 preceding siblings ...)
  2009-12-08 11:22 ` paolo dot carlini at oracle dot com
@ 2009-12-22 18:49 ` jason at gcc dot gnu dot org
  2009-12-22 23:17 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-22 18:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-12-08 11:19:32         |2009-12-22 18:49:34
               date|                            |


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (10 preceding siblings ...)
  2009-12-22 18:49 ` [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer jason at gcc dot gnu dot org
@ 2009-12-22 23:17 ` jason at gcc dot gnu dot org
  2009-12-26 16:25 ` jason at gcc dot gnu dot org
  2009-12-26 16:25 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-22 23:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jason at gcc dot gnu dot org  2009-12-22 23:16 -------
Subject: Bug 42331

Author: jason
Date: Tue Dec 22 23:16:38 2009
New Revision: 155410

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155410
Log:
        PR c++/42331
        * typeck.c (cp_build_modify_expr): Fix thinko.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist29.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (11 preceding siblings ...)
  2009-12-22 23:17 ` jason at gcc dot gnu dot org
@ 2009-12-26 16:25 ` jason at gcc dot gnu dot org
  2009-12-26 16:25 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-26 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jason at gcc dot gnu dot org  2009-12-26 16:25 -------
Subject: Bug 42331

Author: jason
Date: Sat Dec 26 16:24:53 2009
New Revision: 155474

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155474
Log:
        PR c++/42331
        * typeck.c (cp_build_modify_expr): Fix thinko.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist29.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/typeck.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer
  2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
                   ` (12 preceding siblings ...)
  2009-12-26 16:25 ` jason at gcc dot gnu dot org
@ 2009-12-26 16:25 ` jason at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-26 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jason at gcc dot gnu dot org  2009-12-26 16:25 -------
Fixed.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 10:57 [Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery doko at ubuntu dot com
2009-12-08 11:01 ` [Bug c++/42331] " paolo dot carlini at oracle dot com
2009-12-08 11:05 ` doko at ubuntu dot com
2009-12-08 11:06 ` paolo dot carlini at oracle dot com
2009-12-08 11:06 ` paolo dot carlini at oracle dot com
2009-12-08 11:08 ` doko at ubuntu dot com
2009-12-08 11:08 ` rguenth at gcc dot gnu dot org
2009-12-08 11:15 ` paolo dot carlini at oracle dot com
2009-12-08 11:19 ` paolo dot carlini at oracle dot com
2009-12-08 11:19 ` paolo dot carlini at oracle dot com
2009-12-08 11:22 ` paolo dot carlini at oracle dot com
2009-12-22 18:49 ` [Bug c++/42331] [4.4/4.5 regression] ICE with invalid array initializer jason at gcc dot gnu dot org
2009-12-22 23:17 ` jason at gcc dot gnu dot org
2009-12-26 16:25 ` jason at gcc dot gnu dot org
2009-12-26 16:25 ` jason at gcc dot gnu dot org

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