Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype7.C
blob: ba33b19db3388f8aa05a28ad9225f3b3d9658f63 [
file
] [
log
] [
blame
]
// { dg-do compile }
// Origin: C++ standard, [temp.arg.nontype]/2
template
<
class
T
,
char
*
p
>
struct
X
{
X
();
X
(
const
char
*
q
)
{
/* ... */
}
};
char
p
[]
=
"Vivisectionist"
;
X
<
int
,
"Studebaker"
>
x1
;
// { dg-error "string literal" }
X
<
int
,
p
>
x2
;