[llvm-bugs] [Bug 37719] New: clang fail to compile the attached code (Maybe recurring?)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 6 17:14:22 PDT 2018


            Bug ID: 37719
           Summary: clang fail to compile the attached code (Maybe
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zhonghao at pku.org.cn
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 20397
  --> https://bugs.llvm.org/attachment.cgi?id=20397&action=edit
a recurring bug?

clang++ produces the following error message:
4Regressiontest.cpp:11:43: error: typename is allowed for identifiers only
using typename BasicGeometry<mydim, int>::operator[]; // expected-error ...
      ~~~~~~~~~                           ^
1 error generated.

However, gcc does not produce any errors, when compiling the code. Indeed, the
code sample comes from https://bugs.llvm.org/show_bug.cgi?id=10925

Is this a recurring bug?

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/20180607/6fa57008/attachment.html>

More information about the llvm-bugs mailing list