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

            Bug ID: 124591
           Summary: has_c_language_linkage does not recognize C language
                    linkage on function types
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: luigighiron at gmail dot com
  Target Milestone: ---

The following program is incorrectly rejected by GCC:

#include<meta>
extern"C" using F=int();
static_assert(has_c_language_linkage(dealias(^^F)));
int main(){}

F is a function type with C language linkage, so has_c_language_linkage should
return true for dealias(^^F).

Reply via email to