This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ typedef redefinitions and templates
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: C++ typedef redefinitions and templates
- From: Jens Maurer <jmaurer at menuett dot rhein-main dot de>
- Date: Mon, 06 Mar 2000 00:34:55 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <38A3DDD0.D750182C@menuett.rhein-main.de> <200003051835.TAA01192@loewis.home.cs.tu-berlin.de>
"Martin v. Loewis" wrote:
>
> > This is in violation of ISO C++ section 7.1.3/2 [dcl.typedef]. In this case,
> > it is not known until template instantiation time whether the code is legal
> > or not.
>
> Thanks for your bug report. I've put it into GNATS.
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.
Jens Maurer