https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106314
Bug ID: 106314
Summary: GTY fails on virtual int but not virtual void
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: aldyh at gcc dot gnu.org
CC: amacleod at redhat dot com
Target Milestone: ---
GTY markers for a struct having virtual int/bool/etc fails, but interestingly
void works:
struct GTY(()) foobar
{
virtual void foo();
virtual int bar();
virtual bool none();
};
build/gengtype \
-S /home/aldyh/src/gcc/gcc -I gtyp-input.list -w
tmp-gtype.state
/home/aldyh/src/gcc/gcc/value-range.h:260: parse error: expected '(', ')',
'GTY', or an identifier, have 'int'
/home/aldyh/src/gcc/gcc/value-range.h:261: parse error: expected '(', ')',
'GTY', or an identifier, have 'bool'
I would prefer not to have to mark trivial structures containing virtuals
manually with GTY((user)).
Any hints from the gengtype experts?