c++: Concepts and local externs
authorNathan Sidwell <nathan@acm.org>
Fri, 11 Sep 2020 20:42:59 +0000 (13:42 -0700)
committerNathan Sidwell <nathan@acm.org>
Fri, 11 Sep 2020 20:55:45 +0000 (13:55 -0700)
commitf76b0f231b3785bbf49c97173692371f769e4573
tree20ab01a07101e6130a2ad0680347feea9db02ef4
parent2fda9e9badbd78d1033075a44a7d6c1b33de239c
c++: Concepts and local externs

I discovered that we'd accept constraints on block-scope function
decls inside templates.  This fixes that.

gcc/cp/
* decl.c (grokfndecl): Don't attach to local extern.
gcc/cp/decl.c
gcc/testsuite/g++.dg/concepts/local-extern.C [new file with mode: 0644]