[Bug 260136] /usr/include/omp.h fails to compile with -ansi flag: error: unknown type name 'inline'

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Nov 2021 10:07:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260136

            Bug ID: 260136
           Summary: /usr/include/omp.h fails to compile with -ansi flag:
                    error: unknown type name 'inline'
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: standards@FreeBSD.org
          Reporter: yuri@freebsd.org

Testcase: port math/csdp version 6.2.0

Log:
http://beefy18.nyi.freebsd.org/data/main-amd64-default/pd99f40d544e4_sc3134a6af0/logs/coin-or-csdp-6.2.0.log

> cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o op_o.o op_o.c
> In file included from op_o.c:15:
> /usr/include/omp.h:485:12: error: unknown type name 'inline'
>     static inline int omp_is_initial_device(void) { return 1; }
>            ^
> 1 error generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.