This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48029] ICE in finish_member_declaration() with --param ggc-min-expand=0 --param ggc-min-heapsize=0
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 8 Mar 2011 11:00:15 +0000
- Subject: [Bug c++/48029] ICE in finish_member_declaration() with --param ggc-min-expand=0 --param ggc-min-heapsize=0
- Auto-submitted: auto-generated
- References: <bug-48029-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48029
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |GC, ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.08 11:00:12
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-08 11:00:12 UTC ---
I get
> /abuild/rguenther/install-trunk/usr/local/bin/g++ -S t.C
In file included from
/home/abuild/rguenther/install-trunk/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/map:61:0,
from t.C:3:
/home/abuild/rguenther/install-trunk/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_map.h:
In constructor 'std::map<_Key, _Tp, _Compare, _Alloc>::map() [with _Key =
std::basic_string<char>, _Tp = std::vector<std::basic_string<char> > (*)[2],
_Compare = std::less<std::basic_string<char> >, _Alloc =
std::allocator<std::pair<const std::basic_string<char>,
std::vector<std::basic_string<char> > (*)[2]> >]':
t.C:22:10: instantiated from here
/home/abuild/rguenther/install-trunk/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_map.h:153:14:
error: class 'std::map<std::basic_string<char>,
std::vector<std::basic_string<char> > (*)[2]>' does not have any field named
'std::map<std::basic_string<char>, std::vector<std::basic_string<char> >
(*)[2], std::less<std::basic_string<char> >, std::allocator<std::pair<const
std::basic_string<char>, std::vector<std::basic_string<char> > (*)[2]> >
>::_M_t'
so it's invalid code. Confirmed.