[LLVMbugs] [Bug 20145] New: clang-cl doesn't accept forward declarations using namespace prefixes if the class has been already properly declared
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 27 08:05:21 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20145
Bug ID: 20145
Summary: clang-cl doesn't accept forward declarations using
namespace prefixes if the class has been already
properly declared
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ehsan at mozilla.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I'm pretty sure this is not C++, but MSVC accepts this program just fine.
$ cat test.cpp
namespace foo{
class bar;
}
class foo::bar;
$ clang-cl -c test.cpp
test.cpp(4,7) : error: forward declaration of class cannot have a nested name
specifier
class foo::bar;
^~~~~
1 error generated.
--
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/20140627/7817b5d7/attachment.html>
More information about the llvm-bugs
mailing list