[Bug c++/12346] cp/decl.c:1178 asserts if class "iterator" defined in a subclass with wrapped multimap
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 20 13:08:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12346
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |ice-on-valid-code
Resolution| |DUPLICATE
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-20 02:06 -------
I can confirm this on the mainline (20030919).
Here is the reduced sources (Do not worry about sending the preprocessed sources):
template <typename>struct ainter {};
template <typename x,typename> struct a
{
typedef ainter<x> iterator;
};
struct base {
class iterator { };
};
struct mymap : public base {
class map_wrap: public a<int,int>
{ };
class iterator { };
};
This is a dup of bug 5402.
*** This bug has been marked as a duplicate of 5402 ***
More information about the Gcc-bugs
mailing list