[LLVMbugs] [Bug 15192] New: dependent type name error obscured when combining features
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 6 20:05:10 PST 2013
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: unassignedclangbugs at nondot.org
Reporter: gilbert at gilbertbernstein.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130207/c4373a5f/attachment.html>
More information about the llvm-bugs
mailing list