Skip to content

Segmentation Fault with "-std=gnu++20" Flag and Precompiled Headers #46465

Closed as not planned
@llvmbot

Description

@llvmbot
Bugzilla Link 47121
Version unspecified
OS Linux
Attachments Error when running cmake
Reporter LLVM Bugzilla Contributor

Extended Description

Adding this linking "option" to target leads to a Segmentation fault when clang-tidy is running:

"target_compile_features(option INTERFACE cxx_std_20)"
"target_precompile_headers(option INTERFACE "pathToSpdLog1.4.2/spdlog.h")"
note: its not only with spdlog.h its also with "sfml/2.5.1/SFML/Graphics.hpp"

See stacktrace in the attachment

clang-tidy --version

LLVM (http://llvm.org/):
LLVM version 11.0.0git
Optimized build with assertions.
Default target: x86_64-unknown-linux-gnu
Host CPU: skylake

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang-tidycrashPrefer [crash-on-valid] or [crash-on-invalid]incompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions