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
c++: visibility wrt template and ptrmem targs [PR70413]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
linkage4.C
blob
03630eebd3d76307fd324f19802cb17fd690b680
1
// PR c++/107906
2
// { dg-do compile { target c++11 } }
3
// { dg-final { scan-assembler-not "(weak|glob)\[^\n\]*_Z" { xfail *-*-* } } }
4
5
namespace {
6
template<class> using X = int;
7
struct A {
8
template<class> using X = int;
9
};
10
}
11
template<template<class> class Q> void f() { }
12
13
int main() {
14
f<X>();
15
f<A::X>();
16
}