widl: Fail with error on an attempt to inherit interface from itself.

This commit is contained in:
Jacek Caban 2012-08-28 21:33:57 +02:00 committed by Alexandre Julliard
parent bfec155345
commit 5cb75c525f

View file

@ -884,6 +884,8 @@ interfacehdr: attributes interface { $$.interface = $2;
interfacedef: interfacehdr inherit
'{' int_statements '}' semicolon_opt { $$ = $1.interface;
if($$ == $2)
error_loc("Interface can't inherit from itself\n");
type_interface_define($$, $2, $4);
pointer_default = $1.old_pointer_default;
}