Commit 4c1bfef7 by Kai Tietz Committed by Kai Tietz

re PR c++/63904 (ICE when accessing array member of constexpr struct)

	PR c++/63904
	* g++.dg/cpp0x/pr63904.C: New.

From-SVN: r218122
parent 30d5d8c5
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
......
// { 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;
}
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