OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-array4.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49924
2
// { dg-options -std=c++0x }
3
 
4
struct A { constexpr A() { } };
5
 
6
struct B {
7
  A array[1]; //non-static member array of a literal type w constexpr ctor
8
  constexpr B() : array{} { } // here is the problem
9
};
10
 
11
int main()
12
{
13
  constexpr B b{};  // won't compile
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.