[cfe-users] Code which compiles with g++ but not with clang++

Pavel Černohorský via cfe-users cfe-users at lists.llvm.org
Mon Nov 9 01:53:54 PST 2020


On 09. 11. 20 9:28, Richard Smith wrote:
>
> Right, this was made valid by P0641R2, which was voted into C++20 but 
> was not moved as a defect report resolution against prior standards. 
> So I think g++ is being more permissive than the standard requires 
> (though as far as I can see, it would be a conforming extension to 
> accept these cases retroactively), and libstdc++ seems to be relying 
> on that lenience (probably unintentionally).

Thank you all for your help, the problem reduction and the reference to 
P0641R2 made things really clear for me. Now I see what is happening.

Kind regards,

Pavel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20201109/72603d5b/attachment.html>


More information about the cfe-users mailing list