https://issues.dlang.org/show_bug.cgi?id=22343

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #2 from Walter Bright <[email protected]> ---
Although implicit function declarations used to be Standard, they are not as of
C99. They are still allowed by clang and gcc, but:

  cc -c test.c -std=c99 -pedantic-errors

will correctly yield:

  error: implicit declaration of function `func`

Implicit function declarations are a terrible, bug-prone feature that has been
outlawed for over 20 years.

Note that clang at least warns on it.

Some discussion:

https://stackoverflow.com/questions/9182763/implicit-function-declarations-in-c/9182835

--

Reply via email to