Issue 157082
Summary [Clang] Implementation of P2280R4 caused worse diagnostic messages
Labels clang:diagnostics, constexpr
Assignees
Reporter frederick-vs-ja
    https://github.com/llvm/llvm-project/blob/52dd4b9b7e4de5c098053db4fb0952249112c796/clang/test/SemaCXX/constant-_expression_-cxx11.cpp#L2015-L2016

> This looks strange. The old message looks better (see also [CWG453](https://cplusplus.github.io/CWG/issues/453.html)) and the new one is possibly misleading as we perhaps shouldn't say the address of a reference variable.

_Originally posted by @frederick-vs-ja in https://github.com/llvm/llvm-project/pull/95474#discussion_r1639300457_

This is still reproducible on the trunk. [Godbolt link](https://godbolt.org/z/ahjro4sMb).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to