]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: fix 'unsigned __int128_t' semantics [PR108099]
authorJason Merrill <jason@redhat.com>
Tue, 18 Apr 2023 21:12:17 +0000 (17:12 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 19 Apr 2023 16:53:08 +0000 (12:53 -0400)
commit7b30f13b904f137c77e5180357af7917a3b47af0
treeff84759662c756f88b30d9b2bc46d4687cb616cb
parentd738a7d89ca65b3e6d28ba333f4f77653897528d
c++: fix 'unsigned __int128_t' semantics [PR108099]

My earlier patch for 108099 made us accept this non-standard pattern but
messed up the semantics, so that e.g. unsigned __int128_t was not a 128-bit
type.

PR c++/108099

gcc/cp/ChangeLog:

* decl.cc (grokdeclarator): Keep typedef_decl for __int128_t.

gcc/testsuite/ChangeLog:

* g++.dg/ext/int128-8.C: New test.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/ext/int128-8.C [new file with mode: 0644]