[Bug middle-end/47650] wrong output of print_generic_decl() called from a plugin
joe at mcknight dot de
gcc-bugzilla@gcc.gnu.org
Wed Feb 9 16:27:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47650
--- Comment #8 from joe at mcknight dot de 2011-02-09 16:23:44 UTC ---
(In reply to comment #6)
> See http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00956.html for a patch
> (queued for 4.7, several tree-dump check testcases have to be adjusted).
Richard, I've found another example for incorrect output of
print_generic_decl().
Here:
typedef struct {
double dvar;
int ivar;
} *tpdefp;
int myfunc(tpdefp var);
The output would not treat the variable as being of the new type but it would
repeat the declaration of the struct in print_generic_decl() and output
(including newlines):
extern int myfunc (struct
{
double dvar;
int ivar;
} *);
That could be related to the function pointer issue where print_generic_decl()
also rather repeats the declaration instead of printing the new type.
Thanks.
More information about the Gcc-bugs
mailing list