Commit c064f154 by Paolo Carlini Committed by Paolo Carlini

re PR c++/59955 (Segmentation fault on (re?)defining a struct template as…

re PR c++/59955 (Segmentation fault on (re?)defining a struct template as function template, when inside a struct tempate)

2015-04-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59955
	* g++.dg/template/crash121.C: New.

From-SVN: r222612
parent 2f132d1d
2015-04-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59955
* g++.dg/template/crash121.C: New.
2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
* gcc.target/mips/call-from-init.c: New test.
......
// PR c++/59955
template< int xyz >
struct wovo {
template< int n >
void us(){}
template< int n >
struct us< n > {}; // { dg-error "template|conflicts" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment