[LLVMbugs] [Bug 20962] New: crash on bad default argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 16 12:33:37 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20962
Bug ID: 20962
Summary: crash on bad default argument
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This causes clang to crash:
template<typename T> struct S { void f(int k = g(k)()); };
void x() { S<int>().f(); }
The interesting part of the backtrace:
7 clang-3.5 0x0000000003645f04
clang::Sema::CheckImplicitConversions(clang::Expr*, clang::SourceLocation) +
132
8 clang-3.5 0x0000000003646812
clang::Sema::CheckCompletedExpr(clang::Expr*, clang::SourceLocation, bool) + 66
9 clang-3.5 0x000000000382b215
clang::Sema::BuildCXXDefaultArgExpr(clang::SourceLocation,
clang::FunctionDecl*, clang::ParmVarDecl*) + 1253
We're presumably calling CheckCompletedExpr on a null expression.
--
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/20140916/28d3c790/attachment.html>
More information about the llvm-bugs
mailing list