c++/6881: MinGW gcc's problem on template arguments
weihan@sys.com.cn
weihan@sys.com.cn
Fri May 31 00:46:00 GMT 2002
>Number: 6881
>Category: c++
>Synopsis: MinGW gcc's problem on template arguments
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri May 31 00:46:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Wang Weihan
>Release: gcc version 2.95.3-6 (mingw special)
>Organization:
>Environment:
Intel Pentium II, Windows 2000 Server Ed., WinGW building suite.
>Description:
If there are template-typed arguments in a stdcall pure virtual member function, the compiler will give an ICE.
>How-To-Repeat:
to compile try.cpp or just these codes with MinGW gcc 2.95.3-6:
template<class T> struct A {};
struct B { virtual void __attribute__((__stdcall__)) c(A<int>) = 0; };
The command line is:
gcc -v -c -Wall -o try.o try.cpp
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list