[LLVMbugs] [Bug 17898] New: const qualifier accepted on ctor declaration/definition
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Nov 12 10:28:58 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17898
Bug ID: 17898
Summary: const qualifier accepted on ctor
declaration/definition
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: ali.baharev at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The question came up at StackOverflow.
http://stackoverflow.com/q/19935868/341970
According to the accepted answer, the following (simplified) code is illegal
but it compiler with clang++ -Wall -pedantic cleanly.
struct X {
int i;
const X() { i=0; }
};
int main() {
const X x;
}
--
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/20131112/157d71bb/attachment.html>
More information about the llvm-bugs
mailing list