http://llvm.org/bugs/show_bug.cgi?id=20055
Bug ID: 20055
Summary: Clang crashes on invalid default argument
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Two lines of invalid code causes Clang to crash.
This invalid code crashes Clang:
int bar(int x = 0, int y = FOUR);
int foo = bar(0);
Clang does not crash on this code:
int bar(int x = 0, int y = FOUR);
int foo = bar(0, 0);
Also no crashing here:
int bar(int y = FOUR);
int foo = bar();
--
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