https://bugs.llvm.org/show_bug.cgi?id=34865

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]

--- Comment #3 from Richard Smith <[email protected]> ---
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to