[llvm-bugs] [Bug 42071] Template test case no longer failing compilation as expected

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 14 13:03:14 PDT 2019


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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Interesting. This issue predates the commit in question; all versions of clang

// operator name as name of template parameter
template<int operator+> struct X {};

// template-id as name of template parameter
template<typename T> struct Y {};
template<int Y<int> > struct Z {};

// qualified-id as name of template parameter
struct Q {};
template<int Q::Z> struct R {};

The relevant commit causes us to start additionally accepting this case:

template <int A<void> > struct C;

(where A is not declared at all).

Fixed in r363446.

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/20190614/40f93416/attachment.html>

More information about the llvm-bugs mailing list