This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3869: Segmentation fault on specialized outer template with inner member template.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: jhl at sssonline dot com, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,fluxsmith at fluxsmith dot com, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Thu, 2 Jan 2003 21:46:23 +0000
- Subject: Re: c++/3869: Segmentation fault on specialized outer template with inner member template.
- References: <3E14AD6C.6000004@unitus.it>
Paolo Carlini wrote:-
> With current 3.4 no segmentation fault, but instead:
>
> 3869.cc:14: error: expected unqualified-id
> 3869.cc:17: error: expected init-declarator
> 3869.cc:17: error: expected `,' or `;'
>
> If the illegal testcase is changed from:
>
> typedef typename Outer<flag>::Inner<int>::Result Result;
>
> to
>
> typedef typename Outer<flag>::template Inner<int>::Result Result;
>
> It is compiled just fine with 3.2, 3.3 and mainline.
>
> It seems to me that the PR can be closed.
> Paolo.
If so, please add a testcase.
Neil.