https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66995

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2021-08-04 00:00:00         |2022-8-24

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang rejects this:

in.C:2:13: error: inline declaration of 'f' follows non-inline definition
inline void f();
            ^
in.C:1:6: note: previous definition is here
void f() {}
     ^
1 error generated.

EDG accepts it by default, but rejects it with --strict:

"in.C", line 2: error: function "f" cannot be declared inline after its
          definition at line 1
  inline void f();
              ^

1 error detected in the compilation of "in.C".

Reply via email to