This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug report (Template_arg::user_type)


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

gccbug.cpp


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]