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
Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
defarg12.C
blob
80ef5c38e1fc3d4448a39180c66c78dc53650aac
1
/* PR28266 This used to ICE in gimple_add_tmp_var */
2
/* { dg-do "compile" } */
3
4
struct A
5
{
6
int i;
7
A(int = X); /* { dg-error "was not declared in this scope" }*/
8
};
9
10
void foo()
11
{
12
A().i; /* { dg-error "default argument" } */
13
}