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
Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git]
/
embedded-5_0-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
bad-type.C
blob
fffa8c5310c283b5a3da8c987d847cd63c416bc7
1
// { dg-do assemble }
2
template<class Type>
3
class A
4
{
5
public:
6
Type m;
7
};
8
9
template<class Type>
10
void f(A<Type>& a, Type d)
11
{
12
A.m=d; // { dg-error "" } invalid use of template
13
}
14
15
int main()
16
{
17
A<int> a;
18
f(a,2);
19
}
20