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:
Kai Tietz 2014-11-27 13:56:58 +01:00 committed by Kai Tietz
parent 30d5d8c518
commit 4c1bfef7c5
2 changed files with 18 additions and 0 deletions

View file

@ -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

View 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;
}