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

            Bug ID: 16853
           Summary: [-cxx-abi microsoft] Mangle
                    TemplateArgument::Declaration correctly for references
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

struct record {
  int first;
  int second;
};
template <const record &>
struct type1 {
};
extern const record inst;
type1<inst> x;

We currently mangle it like this:
?x@@3U?$type1@$1?inst@@3Urecord@@B@@A

Instead, it should be mangled as:
?x@@3U?$type1@$E?inst@@3Urecord@@B@@A

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