This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42331] New: [4.4/4.5 regression] ICE in error recovery


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]