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++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype7.C
blob
ba33b19db3388f8aa05a28ad9225f3b3d9658f63
1
// { dg-do compile }
2
// Origin: C++ standard, [temp.arg.nontype]/2
3
4
template<class T, char* p> struct X {
5
X();
6
X(const char* q) { /* ... */ }
7
};
8
9
char p[] = "Vivisectionist";
10
11
X<int,"Studebaker"> x1; // { dg-error "string literal" }
12
X<int, p> x2;