https://bugs.llvm.org/show_bug.cgi?id=46499
Richard Smith <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Richard Smith <[email protected]> ---
I believe clang is following the language rules here. You can't mention a
reference from a constant expression unless we know the object the reference
binds to, because the evaluation semantics of an lvalue include determining the
object it denotes.
As far as I can tell, other compilers sometimes accept this because they do
some kind of early AST folding that loses the distinction between a direct
access to a static data member and a class member access.
*** This bug has been marked as a duplicate of bug 41093 ***
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs