On 06/22/15 03:37, Andreas Schwab wrote:
Nathan Sidwell <nat...@acm.org> writes:
On 06/20/15 02:09, Andreas Schwab wrote:
This also fails on powerpc.
what is the build compiler?
It is a bootstrapped build, so the build compiler should not matter.
ok, thanks.
I've just built me a powerpc-linux targeting compiler from an x86_64-linux host.
That is showing the expected diagnostic, so I'm still unable to reproduce the
failure.
nsidwell@build6-lucid-cs:19>install/bin/powerpc-linux-gnu-g++ -std=c++11 -c
nsdmi-template14.C
nsdmi-template14.C:6:20: error: constructor required before non-static data
member for 'A<0>::i' has been parsed
int i = (A<0>(), 0); // { dg-error "has been parsed" }
^
nsdmi-template14.C: In constructor 'constexpr A<0>::A()':
nsdmi-template14.C:4:22: error: constructor required before non-static data
member for 'A<0>::i' has been parsed
template<int> struct A // { dg-error "has been parsed" }
^
nsdmi-template14.C: At global scope:
nsdmi-template14.C:6:20: note: synthesized method 'constexpr A<0>::A()' first
required here
int i = (A<0>(), 0); // { dg-error "has been parsed" }
^
nsdmi-template14.C:14:6: error: recursive instantiation of non-static data
member initializer for 'B<1>::p'
B<1> x; // { dg-error "recursive instantiation of non-static data" }
^
nathan