fix placement of the errors
From-SVN: r24412
This commit is contained in:
parent
a1e27b76d4
commit
90352f7294
@ -12,10 +12,10 @@ enum enum0 { enum0_value_0 };
|
||||
|
||||
struct struct0 {
|
||||
int enum0;
|
||||
void member_function (enum0 e); // ERROR -
|
||||
void member_function (enum0 e); // ERROR - invalid use of struct-local member
|
||||
};
|
||||
|
||||
void class0::member_function (enum0 e) { // ERROR -
|
||||
void class0::member_function (enum0 e) { // ERROR - syntax error
|
||||
}
|
||||
|
||||
int main () { return 0; }
|
||||
|
@ -10,7 +10,7 @@ class class0;
|
||||
|
||||
struct struct1 {
|
||||
int class0;
|
||||
void member_function (class0 *); // ERROR -
|
||||
void member_function (class0 *); // ERROR - invalid use of struct-local member
|
||||
};
|
||||
|
||||
void class1::member_function (class0 *p) { // ERROR -
|
||||
|
Loading…
Reference in New Issue
Block a user