repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
udlit-char-template-neg.C
blob
e77ea45890d52f67e4f95d0d18b3c070ea3ad973
1
// { dg-do compile { target { c++11 && { ! c++14 } } } }
2
3
template<typename CharT, CharT... String>
4
int
5
operator"" _script()
6
{ return 42; } // { dg-error "literal operator template|has invalid parameter list" }
7
8
int i = "hi!"_script;