[LLVMbugs] [Bug 12099] New: No querying macro for the C++11 decltype (N3276)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 27 09:05:41 PST 2012


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

             Bug #: 12099
           Summary: No querying macro for the C++11 decltype (N3276)
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mimomorin at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


__has_feature(cxx_decltype) also detects pre-N3276 decltype, and so
there is no querying macro for N3276 decltype. 

It might be possible to use __has_feature(__cxx_decltype__) to detect N3276
decltype 
(note the double underscores before and after cxx_decltype), 
since __has_feature(__cxx_decltype__) is added after the addition of N3276
decltype: 

    r151117 implemented N3276 decltype.
    r151445 implemented __has_feature(__xxxx__) as a synonym for
__has_feature(xxxx).

If this can be an "official" way to detect N3276 decltype, I'd like this to be
documented. 

Otherwise, it would be nice to have a querying macro for N3276 decltype. 
I posted a patch to add __has_feature(cxx_decltype_incomplete_return_type) in
   
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120220/053844.html

-- 
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