[Bug c/92935] New: typeof() on an atomic type doesn't always return the corresponding unqualified type
luc.vanoostenryck at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 13 21:22:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92935
Bug ID: 92935
Summary: typeof() on an atomic type doesn't always return the
corresponding unqualified type
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: luc.vanoostenryck at gmail dot com
Target Milestone: ---
Created attachment 47495
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47495&action=edit
testcases
typeof() on an atomic type is supposed to return the corresponding
unqualified type.
This is what's happening in cases like:
const _Atomic int tmp;
typeof(tmp) i;
or
typeof(({_Atomic typeof(const int) tmp; })) j;
But, surprisingly, it's not what's happening in a simpler case like:
typeof(_Atomic const int) k;
or
typeof(_Atomic typeof(const int)) l;
More information about the Gcc-bugs
mailing list