[Bug c++/50169] [DR 2141] "new struct X {{}};" incorrectly treated as an invalid struct-definition

zeratul976 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 18 16:03:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50169

Nathan Ridge <zeratul976 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zeratul976 at hotmail dot com

--- Comment #6 from Nathan Ridge <zeratul976 at hotmail dot com> ---
Here is another test case that MSVC accepts but GCC rejects:

struct A {};
struct A* b = (1 == 1) ? new struct A : new struct A;


More information about the Gcc-bugs mailing list