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

            Bug ID: 90833
           Summary: Inline specification is changed?
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhonghao at pku dot org.cn
  Target Milestone: ---

A previous bug report has a code sample:

int main()
  {
    extern inline void f();
  }

  void f()
  {
  }

It says that gcc rejects the sample, but clang accepts it. The bug is marked as
fixed. 

I tried gcc 10.0.0 and clang 9.0.0. Now, gcc accepts the code, but clang
rejects it:

error: inline declaration of 'f' not allowed in block scope
 extern inline void f();
        ^~~~~~~
1 error generated.

Is the spec changed? Or, actually, this is a new bug?

Reply via email to