re PR c++/58188 (ICE in gimple_add_tmp_var, at gimplify.c:738)
2013-11-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58188 * g++.dg/cpp0x/nsdmi-template8.C: New. 2013-11-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58725 * g++.dg/cpp0x/nsdmi-template7.C: New. 2013-11-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58829 * g++.dg/cpp0x/nsdmi-template6.C: New. From-SVN: r204881
This commit is contained in:
parent
6019d86d17
commit
3d053a5f72
4 changed files with 70 additions and 0 deletions
|
@ -1,3 +1,18 @@
|
|||
2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58188
|
||||
* g++.dg/cpp0x/nsdmi-template8.C: New.
|
||||
|
||||
2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58725
|
||||
* g++.dg/cpp0x/nsdmi-template7.C: New.
|
||||
|
||||
2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58829
|
||||
* g++.dg/cpp0x/nsdmi-template6.C: New.
|
||||
|
||||
2013-11-15 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/58599
|
||||
|
|
13
gcc/testsuite/g++.dg/cpp0x/nsdmi-template6.C
Normal file
13
gcc/testsuite/g++.dg/cpp0x/nsdmi-template6.C
Normal file
|
@ -0,0 +1,13 @@
|
|||
// PR c++/58829
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
struct A {
|
||||
int f() {return 0;}
|
||||
} a;
|
||||
|
||||
struct B {
|
||||
template<int=0> struct C {
|
||||
int i = a.f();
|
||||
};
|
||||
};
|
||||
B::C<> c;
|
15
gcc/testsuite/g++.dg/cpp0x/nsdmi-template7.C
Normal file
15
gcc/testsuite/g++.dg/cpp0x/nsdmi-template7.C
Normal file
|
@ -0,0 +1,15 @@
|
|||
// PR c++/58725
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
struct A {
|
||||
template<int=0>
|
||||
struct B {
|
||||
struct C {
|
||||
int x = 0;
|
||||
double y = x;
|
||||
} c;
|
||||
};
|
||||
};
|
||||
int main() {
|
||||
A::B<>();
|
||||
}
|
27
gcc/testsuite/g++.dg/cpp0x/nsdmi-template8.C
Normal file
27
gcc/testsuite/g++.dg/cpp0x/nsdmi-template8.C
Normal file
|
@ -0,0 +1,27 @@
|
|||
// PR c++/58188
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
struct B {};
|
||||
struct A
|
||||
{
|
||||
A( B );
|
||||
};
|
||||
|
||||
struct Bar
|
||||
{
|
||||
template< unsigned v >
|
||||
struct Foo
|
||||
{
|
||||
A z = B();
|
||||
unsigned value;
|
||||
Foo(): value( v ) {}
|
||||
};
|
||||
|
||||
struct Baz
|
||||
{
|
||||
Foo< 8 > foo1;
|
||||
Foo< 1 > foo3;
|
||||
};
|
||||
};
|
||||
|
||||
Bar::Baz baz;
|
Loading…
Add table
Reference in a new issue