c++/6210: internal compiler error using __attribute__

sanjay314@yahoo.ca sanjay314@yahoo.ca
Sat Apr 6 20:26:00 GMT 2002


>Number:         6210
>Category:       c++
>Synopsis:       internal compiler error using __attribute__
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 06 20:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sanjay
>Release:        gcc version 2.95.3-6 (mingw special)
>Organization:
>Environment:
mingw running under windows 98 se.  No error when compiled under djgpp (gcc version 2.95.2 19991024 (release)).  Cygwin is not being used when compiling.
>Description:
Internal compiler error on what I believe to be valid code.  It's a one-liner:

template<class T> __attribute__((stdcall)) int f(T x){}

Output when compiled with ``gcc -v -save-temps bug.cc'' is attatched.
>How-To-Repeat:
compile the code under mingw.
>Fix:
Compiles fine under the djgpp version of gcc; I haven't tried other compilers.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list