[llvm-bugs] [Bug 45142] Segfault from pseudodestructor with template alias

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 23 15:11:26 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45142

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The code is ill-formed, by [temp.names]/5:

"A name prefixed by the keyword template shall be a template-id or the name
shall refer to a class template or an alias template."

(The "shall refer to" part only intends to cover the case where no template
arguments are specified, specifically when passing a dependent template
template argument: 'X<T::template U>'.) ~A<B> is not a template-id, since the
template name in a template-id is required to be either an identifier or an
operator name (eg 'operator+' or 'operator""_foo').


Fixed in llvmorg-11-init-6577-g502915c619a.

-- 
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/20200323/a6361f40/attachment-0001.html>


More information about the llvm-bugs mailing list