[LLVMbugs] [Bug 8912] New: Non-type template argument parse error (with a functional cast expression).

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 5 07:14:39 PST 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: zaffanella at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list