https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90833
--- Comment #1 from zhonghao at pku dot org.cn --- Here is the url of the previous bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88726 (In reply to zhonghao from comment #0) > 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?