http://llvm.org/bugs/show_bug.cgi?id=8912

           Summary: Non-type template argument parse error (with a
                    functional cast expression).
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Parsing the following program

template <bool> struct S {};
S<bool(2 > 1)> s;

produces the following error:

bug.cc:2:10: error: expected ')'
S<bool(2 > 1)> s;
         ^
bug.cc:2:7: note: to match this '('
S<bool(2 > 1)> s;
      ^

NOTE: no error is obtained if the functional cast is changed into a C-style
cast.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to