This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: a template regression
- To: Max Lawson <mlawson at drfmc dot ceng dot cea dot fr>
- Subject: Re: a template regression
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Fri, 27 Feb 1998 18:58:55 GMT
- Cc: egcs-bugs at cygnus dot com, snyder at d0sgif dot fnal dot gov
- References: <9802270925.AA21253@drfmc.ceng.cea.fr>
- Reply-To: mmitchell at usa dot net
>>>>> "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