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

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 30 07:15:46 PDT 2019


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

            Bug ID: 42071
           Summary: Template test case no longer failing compilation as
                    expected
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolean at ca.ibm.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Below test case no longer fails as is expected with the following commit:
fb98e7c13da639f34f34830a4e675367e0816cb6
[c++20] Implement P0846R0: allow (ADL-only) calls to template-ids whose

$ cat t1.cpp
template <class T> struct A;
template <int A<void> > struct C;

Expected output:
$ g++ -c t1.cpp
t1.cpp:2:23: error: expected unqualified-id before '>' token
 template <int A<void> > struct C;
                       ^

Current behaviour is successful compile:
$ clang++ -c t1.cpp
$


Issue discovered on Power8 hardware (powerpc64le), Ubuntu 18.04.

-- 
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/20190530/1421e009/attachment.html>


More information about the llvm-bugs mailing list