Commit a258e464 by Jason Merrill

c++: Add test for PR91607.

     PR c++/91607
     * g++.dg/cpp0x/constexpr-const3.C: New.
parent a2ec7c4a
// PR c++/91607
// { dg-do compile { target c++11 } }
enum A { a };
constexpr A f(const A x) { return x; }
int main()
{
constexpr A a0 = f(a);
constexpr A a1 {};
constexpr A a2 = f(a1);
}
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