[llvm-bugs] [Bug 23547] Clang frontend behaves differently from g++. Constructor call
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 2 15:00:37 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=23547
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rnk at google.com
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Reid Kleckner <rnk at google.com> ---
It seems clang correctly rejects this code today:
$ clang -c t.cpp
t.cpp:5:22: error: qualified reference to 'Widget' is a constructor name rather
than a type in this context
Widget x = Widget::Widget();
^
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/20190702/8aea66e9/attachment-0001.html>
More information about the llvm-bugs
mailing list