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

            Bug ID: 22212
           Summary: Crash on invalid in IR/Metadata.cpp:
                    `isOperandUnresolved(New) && "Operand just became
                    unresolved"' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Crashes r225743 in IR/Metadata.cpp with
`isOperandUnresolved(New) && "Operand just became unresolved"' failed.

Compile with -c -g -std=c++14.

template <typename T> T crazy = T();
long foo() {
  crazy<int> = 5;
  crazy<short> = 10;
  return crazy<int> + crazy<short>;
}
// Missing 'template<>' here
long crazy<long> = 8;

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