http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59028
Bug ID: 59028
Summary: gengtype 4.7 fails with operator inside GTY-ed struct
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: plugins
Assignee: unassigned at gcc dot gnu.org
Reporter: bstarynk at gcc dot gnu.org
Created attachment 31174
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31174&action=edit
testopgty.h uses the operator keyword inside a GTY-ed struct.
The attached file testopgty.h when run with
/usr/lib/gcc/x86_64-linux-gnu/4.7.3/gengtype \
-r /usr/lib/gcc/x86_64-linux-gnu/4.7.3/plugin/gtype.state \
-P gt-baobab.h testopgty.h
fails with the error:
testopgty.h:4: unidentified type `operator'
(this is on Debian/Sid, and also on GGC 4.7.3 FSF)
Addenda:
Actually this bug was first discovered with MELT 1.0 plugin for 4.7 & 4.8 (see
http://gcc-melt.org/ for more about MELT). The MELT bug is
https://sourceforge.net/p/gcc-melt/tickets/6/
A disgusting workaround (for the MELT plugin) is available as MELT 1.0.1 (or
MELT 1.0.1 rc1) - it involves running unifdef to remove "faulty" code - bug the
bug really is in gengtype.