This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, in this old bug Ian complained that the diagnostic we provide for: typedef void v; typedef v (*pf)(v); is rather unfriendly, especially for people coming from C: 33101.C:2:17: error: ‘<anonymous>’ has incomplete type 33101.C:2:18: error: invalid use of ‘v’thus Gaby (and Ian) suggested something along the lines of what I propose below. Today I also noticed that some front-ends also deal specially with cv-qualified void, thus added that case too, then just generically 'void' I think it's good enough.
Thanks, Paolo. //////////////
Attachment:
CL_33101
Description: Text document
Attachment:
patch_33101
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |