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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |125576

--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Nathan Ridge from comment #8)
> (In reply to Eric Gallager from comment #7)
> > (In reply to Nathan Ridge from comment #6)
> > > Here is another test case that MSVC accepts but GCC rejects:
> > > 
> > > struct A {};
> > > struct A* b = (1 == 1) ? new struct A : new struct A;
> > 
> > Is this really the same thing though?
> 
> I believe it's code that was made valid by DR2141, yes. I elaborate on my
> reasoning in the corresponding clang bug:
> 
> https://bugs.llvm.org/show_bug.cgi?id=34993

After migration to GitHub, it looks like that is now:
https://github.com/llvm/llvm-project/issues/34341
...which has since been closed as completed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125576
[Bug 125576] [meta-bug] clang/LLVM compatibility

Reply via email to