This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51515] Unable to forward declare nested functions
- From: "SztfG at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Jul 2017 07:55:03 +0000
- Subject: [Bug c/51515] Unable to forward declare nested functions
- Auto-submitted: auto-generated
- References: <bug-51515-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51515
SztfG at yandex dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |SztfG at yandex dot ru
--- Comment #2 from SztfG at yandex dot ru ---
but why this doesn't compile?
void f()
{
typedef auto void (*func)();
func g(void);
g();
func g() {}
}