This is the mail archive of the gcc-bugs@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]

[Bug c/51515] Unable to forward declare nested functions


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() {}
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]