This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80605] [7/8 Regression] Bad is_standard_layout result with empty base classes
- From: "lloda at bluewin dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 May 2017 10:23:11 +0000
- Subject: [Bug c++/80605] [7/8 Regression] Bad is_standard_layout result with empty base classes
- Auto-submitted: auto-generated
- References: <bug-80605-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80605
--- Comment #5 from lloda at bluewin dot ch ---
(In reply to Jonathan Wakely from comment #3)
> (In reply to lloda from comment #0)
> > gcc 7.1.0 prints False for the following program. gcc 6.3.0 and others print
> > True.
> >
> > // $CXX -std=c++14 -o stdlayout stdlayout.C
>
> Are you sure about that? I can only reproduce this with -std=c++17
>
> (So it's probably due to the changes to the definition of aggregates in
> C++17)
You're right, I was actually trying with c++1z. Apologies. It does work with
c++14.