[llvm-bugs] [Bug 37768] expected the class name after '~' to name a destructor
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 8 17:55:05 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=37768
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
We now diagnose this as:
<stdin>:14:6: error: identifier 'Class' after '~' in destructor name does not
name a type
~Class() {} // expected class name after ~ to name a destructor
^~~~~
Class
<stdin>:13:28: note: non-type declaration found by destructor name lookup
using base_t<Args...>::Class;
^
... which seems to identify the problem much more clearly: the name 'Class' is
a non-type name.
--
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/20200509/1761580a/attachment.html>
More information about the llvm-bugs
mailing list