C++ typedef redefinitions and templates

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Mar 5 15:57:00 GMT 2000


> An additional note: There may be a defect report with the C++ committee
> which would forbid repeated typedef's in classes so that the current gcc
> behaviour would be correct.

Thanks for the info. Looking at

http://www.informatik.hu-berlin.de/~loewis/corer9.html#56

it indeed looks like this is an adopted DR. So I guess the change

1999-05-28  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (add_binding): Don't complain about a redeclaration of a
	semantically identical typedef in a local scope.


must be reverted...

Martin


More information about the Gcc-bugs mailing list