Commit 5cb75c52 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent bfec1553
......@@ -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;
}
......
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