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]

Re: a template regression



>>>>> "Max" == Max Lawson <mlawson@drfmc.ceng.cea.fr> writes:

    Max> [...]
    >>  ------------------------------- #include <list.h>
    >> 
    >> template <class T> class d0_List_1 : public list<T> { };
    >> ------------------------------- y.cpp:6: `__eq<>' does not
    >> match any template declaration y.cpp:6: confused by earlier
    >> errors, bailing out
    >> 
    >> 
    >> So if there's not a problem in the compiler, there's a problem
    >> in the STL implementation...
    >> 

    Max> I do aggree. I've sent a bug report about this subject, since
    Max> I couldn't compile the following testcase:

I suspect that you'll find that -pedantic causes your code to compile
fine.  This is a bug in g++, of course; you shouldn't need -pedantic
to compile anything.

    Max> ---- #include <hash_map>

    Max> static hash_map<int,int> hm; -----

    Max> the compiler dies with the same message you're reporting.

    Max> Such behaviour occurs (did occur ?) on the main trunk, not
    Max> with 1.0.2-prerelease I've retrieved on 980225-15h30-MET.

    Max> Regards, Max
 

 

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu



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