[Bug c++/123261] New: ICE in diagnostics when using implicit constexpr
addr2line at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 22 16:37:59 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123261
Bug ID: 123261
Summary: ICE in diagnostics when using implicit constexpr
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: addr2line at gmail dot com
Target Milestone: ---
```c++
class A {
public:
A() { asm volatile(""); }
~A() {}
};
constexpr bool test() {
A a;
return true;
}
static_assert(test());
```
Already have a patch for this.
More information about the Gcc-bugs
mailing list