Strange bug with templates?

Rtveliashvili Denis rtvd@mail.ru
Wed Sep 22 09:28:00 GMT 1999


I've found this bug(?) when I tried to compile my program with the new
egcs compiler. It was fine with the old one.

New compiler: egcs-2.91.66  (rpm version - 1.1.2-12 ) Taken from Mandrake
5.3

Old one: egcs-2.90.29 (rpm version - 1.0.3a-14) Taken from RedHat 6.2

The new compiler said something like: Can't convert from A <C> to A <B <C>
>.

The command I've run was: g++ t.cpp -o t
My system is Linux on 686 (Celeron)

So I decided to install the older compiler to continue my work. Now I have
no
problems with compilation but I am afraid this bug(?) will be in next linux
releases.

		Denis                          rtvd@mail.ru   rtvd@7ka.mipt.ru
T.cpp (CPP File)



More information about the Gcc-bugs mailing list