c++/3869: Segmentation fault on specialized outer template with inner member template.
Neil Booth
neil@daikokuya.co.uk
Thu Jan 2 21:56:00 GMT 2003
The following reply was made to PR c++/3869; it has been noted by GNATS.
From: Neil Booth <neil@daikokuya.co.uk>
To: Paolo Carlini <pcarlini@unitus.it>
Cc: jhl@sssonline.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
fluxsmith@fluxsmith.com, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: c++/3869: Segmentation fault on specialized outer template with inner member template.
Date: Thu, 2 Jan 2003 21:46:23 +0000
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.
More information about the Gcc-prs
mailing list