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


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


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