https://llvm.org/bugs/show_bug.cgi?id=23110
Bug ID: 23110
Summary: ICE when using malformed raw string literal as default
parameter
Product: new-bugs
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 14142
--> https://llvm.org/bugs/attachment.cgi?id=14142&action=edit
stack trace for the sample program
When using a malformed raw string literal as a default argument to a member
function template, an internal compiler error occurs. LLVM installed from the
arch linux packages.
Here is a small example case, named test1.cpp and compiled with 'clang++
-std=c++11 test1.cpp' it produces the attached stacktrace:
#include <regex>
#include <string>
struct S {
template <typename T>
void foo(std::string s = R"\S+") {}
};
int main() { S{}.foo<int>(); }
--
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