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

            Bug ID: 15192
           Summary: dependent type name error obscured when combining
                    features
           Product: clang
           Version: 3.1
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 9976
  --> http://llvm.org/bugs/attachment.cgi?id=9976&action=edit
small c++ file which reproduces the bug

When I compile the attached file, I do not receive a clear error message. 
Ideally I would receive:

    error: missing 'typename' prior to dependent type name

But instead I receive 3 errors:

    error: type name requires a specifier or qualifier
    error: C++ requires a type specifier for all declarations
    error: expected body of lambda expression

See the attached isolated example code for more details (in the comments).

I compiled this file on Mac OS X 10.8  version info:
$clang++ --version
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

I used the command
$clang++ -Wall -std=c++11 -stdlib=libc++ small_case.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to