[LLVMbugs] [Bug 20166] New: Assertion `!RefExpr.isInvalid() && Context.hasSameType(((Expr*) RefExpr.get())->getType(), ParamType.getUnqualifiedType())' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 30 18:50:13 PDT 2014


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

            Bug ID: 20166
           Summary: Assertion `!RefExpr.isInvalid() &&
                    Context.hasSameType(((Expr*)
                    RefExpr.get())->getType(),
                    ParamType.getUnqualifiedType())' failed
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: schnetter at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12722
  --> http://llvm.org/bugs/attachment.cgi?id=12722&action=edit
Backtrace

I receive an internal compiler error with Clang 3.4.2. I attach the backtrace,
run script, and preprocessed source code. The first few lines of the backtrace
are:

```
clang:
/home/eschnett/SIMFACTORY/llvm-3.4.2/src/llvm-3.4.2.src/tools/clang/lib/Sema/SemaTemplate.cpp:5121:
clang::ExprResult clang::Sema::BuildExpressionFromDeclTemplateArgument(const
clang::TemplateArgument&, clang::QualType, clang::SourceLocation): Assertion
`!RefExpr.isInvalid() && Context.hasSameType(((Expr*)
RefExpr.get())->getType(), ParamType.getUnqualifiedType())' failed.

clang::Sema::DeduceTemplateArguments(clang::ClassTemplatePartialSpecializationDecl*,
clang::TemplateArgumentList const&, clang::sema::TemplateDeductionInfo&) + 788
12 clang           0x0000000000d6cc94
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 676
13 clang           0x0000000000d970c6
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1414
```

This occurs on Linux. I built Clang 3.4.2 myself, using GCC 4.9.0. I am also
building against GCC 4.9.0's libstdc++ when the error occurs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140701/e85c01f4/attachment.html>


More information about the llvm-bugs mailing list