Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Confusing error: member reference base type '_Atomic(struct x)' is not a structure or union #54563

Closed
Labels
c11clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party
@pmor13

Description

@pmor13
_Atomic struct x { int x; } x;void f(int y){    x.x = y;}
$ clang t0.c -std=c11 -pedantic -Wall -Wextra -c<source>:4:6: error: member reference base type '_Atomic(struct x)' is not a structure or union    x.x = y;

The atomic structure is still a structure.

Expected to be:

accessing a member 'x' of an atomic structure 'x'

Or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c11clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp