[LLVMbugs] [Bug 12488] New: decltype can be used in C++03 with no errors, no warnings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 6 18:58:05 PDT 2012


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

             Bug #: 12488
           Summary: decltype can be used in C++03 with no errors, no
                    warnings
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mimomorin at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


For example, the following code compiles fine with no errors, no warnings: 

int main (int argc, char* argv[])
{
    decltype(0) i = 0;
    return i;
}

I'm using r154014.

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