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++/12346] cp/decl.c:1178 asserts if class "iterator" defined in a subclass with wrapped multimap


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 ***


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