https://bugs.llvm.org/show_bug.cgi?id=34865
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |richard-l...@metafoo.co.uk
--- Comment #3 from Richard Smith <richard-l...@metafoo.co.uk> ---
Clang is correct. Only odr-used variables need to be captured. Naming a
reference initialized by a constant expression does not constitute an odr-use.
See
http://wiki.edg.com/pub/Wg21albuquerque/CoreWorkingGroup/cwg_defects.html#1472
which introduced the "references initialized by constant expressions don't need
to be captured" rule.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs