re PR c++/63904 (ICE when accessing array member of constexpr struct)
PR c++/63904 * g++.dg/cpp0x/pr63904.C: New. From-SVN: r218122
This commit is contained in:
parent
30d5d8c518
commit
4c1bfef7c5
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-11-27 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR c++/63904
|
||||
* g++.dg/cpp0x/pr63904.C: New.
|
||||
|
||||
2014-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/64067
|
||||
|
|
13
gcc/testsuite/g++.dg/cpp0x/pr63904.C
Normal file
13
gcc/testsuite/g++.dg/cpp0x/pr63904.C
Normal file
|
@ -0,0 +1,13 @@
|
|||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template<int N>
|
||||
struct foo {
|
||||
constexpr foo() : a() {}
|
||||
int a[N];
|
||||
};
|
||||
|
||||
int main() {
|
||||
foo< (foo<1>{}).a[0] > f;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue