Skip to content

Contributed_Sample_Codes/Tutorial1/pi: c++ compile errorΒ #4

@tonycurtis

Description

@tonycurtis

With community PGI on Fedora 30 x86_64

$ make c++
pgc++ -o pic.exe pic.cpp -fast -Minfo=opt
"/usr/include/c++/9/bits/stl_function.h", line 437: error: identifier
          "__builtin_is_constant_evaluated" is undefined
  	if (__builtin_is_constant_evaluated())
  	    ^

1 error detected in the compilation of "pic.cpp".
make: *** [Makefile:14: pic.exe] Error 2

$ pgc++ -V

pgc++ 19.4-0 LLVM 64-bit target on x86-64 Linux -tp skylake
PGI Compilers and Tools
Copyright (c) 2019, NVIDIA CORPORATION.  All rights reserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions