[LLVMbugs] [Bug 15860] New: Constructor name resolution
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Apr 27 22:14:29 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15860
Bug ID: 15860
Summary: Constructor name resolution
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: adamschn at umich.edu
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang compiles this sample fine:
struct foo {
foo();
};
int main() { foo::foo bar; }
but both g++ and VS2012 reject it. The relevant section in the standard is
C++11[class.qual]p2, specifically:
[...] the constructor is not an acceptable lookup result in an
elaborated-type-specifier so the constructor would not be used
in place of the injected-class-name [...]
Is clang being too permissive here?
--
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/20130428/92832e15/attachment.html>
More information about the llvm-bugs
mailing list