[LLVMbugs] [Bug 23110] New: ICE when using malformed raw string literal as default parameter
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 2 21:57:59 PDT 2015
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: unassignedbugs at nondot.org
Reporter: adamschwalm at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150403/983db397/attachment.html>
More information about the llvm-bugs
mailing list