[LLVMbugs] [Bug 13074] Trailing return type can't handle decltype(&std::declval<foo>())

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 10 17:19:13 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13074

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-06-10 19:19:13 CDT ---
This code is invalid; declval produces an xvalue, and the address of an xvalue
can't be taken. Newer versions of g++ reject this code. The trailing return
type and decltype parts are irrelevant.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list