Bug report (Template_arg::user_type)
Valery Vybornov
vvv@west-call.com
Fri Oct 1 03:14:00 GMT 1999
Hello,
The (legal) code attached produces inadequate error messages. Reason seems
to be in 's::ref' expression (if you
avoid this code, everything is ok).
The code compiles and works well under Microsoft compiler (ver. 12.00.8168;
MSVC 6.0)
----------------------------------------------------------------------------
----------
D:\Home\vvv\Personal\Projects\common>gcc gccbug.cpp
gccbug.cpp: In function `void f2(s &)':
gccbug.cpp:15: parse error before `;'
gccbug.cpp: In function `void f2<s1<int> >(s1<int> &)':
gccbug.cpp:30: instantiated from here
gccbug.cpp:17: no matching function for call to `f1 (int *&, int)'
D:\Home\vvv\Personal\Projects\common>gcc -v
Reading specs from
/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cy
gwin32/2.95/specs
gcc version 2.95 19990728 (release)
D:\Home\vvv\Personal\Projects\common>ver
Windows NT Version 4.0
----------------------------------------------------------------------------
----------
For NT, I use cygnus binary distribution (B20.1).
Valery
More information about the Gcc-bugs
mailing list