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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
register1.C
blob
9787ac92fd828e2eaec24843297992d8119aeec1
1
// PR c++/23839
2
3
class C
4
{
5
int i;
6
public:
7
C(int j) : i(j) { }
8
operator int() { return i; }
9
};
10
11
C f (register C x) // { dg-error "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
12
{
13
return x + 31;
14
}