[LLVMbugs] [Bug 13158] New: [Windows] error: cannot mangle this expression template argument yet

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 20 12:38:59 PDT 2012


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

             Bug #: 13158
           Summary: [Windows] error: cannot mangle this expression
                    template argument yet
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


As of r158767, the following code fails to compile:
$ cat bool_template.cpp
template <bool flag> class Class { };

template <> class Class<true> {
 public:
  template <typename T> void Foo(T arg);
};

void foo() {
  Class<true> c;
  c.Foo(1);
}

$ clang++ -cc1 -cxx-abi microsoft -emit-llvm bool_template.cpp
bool_template.cpp:3:25: error: cannot mangle this expression template argument
yet
template <> class Class<true> {
                        ^~~~
1 error generated.

-- 
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