[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread brad.lionberger at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 --- Comment #6 from Brad 2011-05-26 23:48:27 UTC --- (In reply to comment #5) > (In reply to comment #3) > > (In reply to comment #2) > > > I forgot to mention GCC compiles it correctly with the C++ front-end. > > > > Removing the typedefs will

[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 --- Comment #5 from Jonathan Wakely 2011-05-26 23:44:43 UTC --- (In reply to comment #3) > (In reply to comment #2) > > I forgot to mention GCC compiles it correctly with the C++ front-end. > > Removing the typedefs will still cause compilation

[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 --- Comment #4 from Andrew Pinski 2011-05-26 23:36:43 UTC --- This works: // Forward declaration typedef struct _a a; // Pointer to function with struct as parameter typedef int (*FxnPointer)(a* WontComplie); // Actual declaration of struct wit

[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread brad.lionberger at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 --- Comment #3 from Brad 2011-05-26 23:23:17 UTC --- (In reply to comment #2) > I forgot to mention GCC compiles it correctly with the C++ front-end. Removing the typedefs will still cause compilation to error out not knowing what a is. For exa

[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 --- Comment #2 from Andrew Pinski 2011-05-26 23:12:03 UTC --- I forgot to mention GCC compiles it correctly with the C++ front-end.

[Bug c/49182] Fordward declarations of struct not usable in function pointer types.

2011-05-26 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49182 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|