https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
--- Comment #7 from Stas Sergeev ---
(In reply to Jason Merrill from comment #4)
> But when we're in the middle of the class definition we don't know yet
> whether it's standard-layout, so we can't answer yet. A compiler is allowed
> to reorder
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
Jason Merrill changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
--- Comment #5 from Jason Merrill ---
Author: jason
Date: Wed Apr 3 20:09:17 2019
New Revision: 270135
URL: https://gcc.gnu.org/viewcvs?rev=270135&root=gcc&view=rev
Log:
PR c++/89331 - ICE with offsetof in incomplete class.
We were abo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
Jason Merrill changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
Jakub Jelinek changed:
What|Removed |Added
Target Milestone|8.3 |8.4
--- Comment #3 from Jakub Jelinek -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
Richard Biener changed:
What|Removed |Added
Keywords||ice-on-invalid-code
Priority|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
--- Comment #2 from Stas Sergeev ---
(In reply to Jakub Jelinek from comment #1)
> Simplified testcase:
> struct A { char a; };
> struct B : public A { static constexpr int b = __builtin_offsetof (B, a); };
>
> clang rejects this too, not really
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89331
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|