Returning in C++14 constexpr constructor leads to ICE
Asked by
Valentin Ochs
Trying to compile a class with a constexpr constructor that returns at any point like in [1] leads to the error
foo.cpp:8:3: in constexpr expansion of 'mwi.A::A()'
foo.cpp:8:3: internal compiler error: in cxx_eval_
A mwi;
^~~
On godbolt.org I can see that it works for ARM64-gcc and x86_64-gcc, but not ARM-gcc, so it's not just on my box.
Should I file a bug report?
Some data:
Release 6-2017-q2-update, binary package, x86-64 host.
Cheers,
Valentin
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.