[Bug c++/85548] New: Zero-initialization of padding bits of an aggregate class (class A) member of a non-aggregate class (class B) is not performed when B is value-initialized.

2018-04-27 Thread jenda.tusil at gmail dot com
. Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jenda.tusil at gmail dot com Target Milestone: --- Consider classes A and B

[Bug c++/83132] Error while redeclaring an enum with extra qualification

2017-11-23 Thread jenda.tusil at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83132 --- Comment #2 from Jan Tušil --- The 'struct' version can be simplified to: struct E; struct ::E {}; Which gives the following error: 2:12: error: global qualification of class name is invalid before '{' token

[Bug c++/83132] New: Error while redeclaring an enum with extra qualification

2017-11-23 Thread jenda.tusil at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jenda.tusil at gmail dot com Target Milestone: --- g++ -std=c++14 does not compile this: enum E : int; enum ::E : int{}; It says: 2:10: error: expected unqualified-id before ‘:’ token Clang