Kaydet (Commit) 39831b1d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix unoidl sourceprovider recursive struct/exception member check

Change-Id: Icd156745da10011611590b6b62cd0ec2df2b1266
üst 87dc2228
...@@ -1288,9 +1288,16 @@ structMember: ...@@ -1288,9 +1288,16 @@ structMember:
default: default:
break; break;
} }
if (nameHasSameIdentifierAs(data->currentName, id)) { if (t.getName() == data->currentName) { // no need to worry about typedefs
error( error(
@2, yyscanner, @2, yyscanner,
("struct/exception type " + data->currentName + " direct member "
+ id + " has same type as the type itself"));
YYERROR;
}
if (nameHasSameIdentifierAs(data->currentName, id)) {
error(
@3, yyscanner,
("struct/exception type " + data->currentName + " direct member " ("struct/exception type " + data->currentName + " direct member "
+ id + " has same unqualified identifer as the type itself")); + id + " has same unqualified identifer as the type itself"));
YYERROR; YYERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment