This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug report
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Bug report
- From: "Joao Belo" <jbelo at isel dot pt>
- Date: Fri, 26 May 2000 20:04:33 +0100
- Reply-To: <jbelo at isel dot pt>
Hello,
the code:
template<class T>
void g(T t)
{
dd++;
}
compiles ok with gcc, but is ill-formed (Line "dd++;"), according to the C++
definition (ISO/IEC 14882:1998(E), page 260).
gcc version is:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Isn't the code:
struct X
{
void h();
};
template<class T>
struct Y : public T
{
void f() { h(); }
};
ill-formed too?
Thank you,
Joćo Belo