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]
Other format: [Raw text]

Re: c++/3869: Segmentation fault on specialized outer template withinner member template.


Neil Booth wrote:

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.

Well, if my analysis is correct, which one? I mean, the legal-ized version is compiled
just fine by 3.2.1, 3.3 and 3.4, the illegal one doesn't ICE with 3.4 but, good, is not compiled
either (see above). So, perhaps just closing it would be fine?

Thanks, Paolo.


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