public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/116532] New: GCC accepts invaild static int iarr2 alignas(16)
@ 2024-08-29 10:18 jlame646 at gmail dot com
  2024-08-29 13:43 ` [Bug c++/116532] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jlame646 at gmail dot com @ 2024-08-29 10:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116532

            Bug ID: 116532
           Summary: GCC accepts invaild static int iarr2 alignas(16)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jlame646 at gmail dot com
  Target Milestone: ---

GCC accepts invalid program shown below. https://godbolt.org/z/df95YbKW1

```
static int iarr2 alignas(16); //accepted by all gcc,clang and msvc
```
This is not allowed by current grammar as explained here
https://stackoverflow.com/questions/42692058/why-doesnt-alignas-compile-when-used-in-a-static-declaration-with-clang

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/116532] GCC accepts invaild static int iarr2 alignas(16)
  2024-08-29 10:18 [Bug c++/116532] New: GCC accepts invaild static int iarr2 alignas(16) jlame646 at gmail dot com
@ 2024-08-29 13:43 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-08-29 13:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116532

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 90847 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-29 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-29 10:18 [Bug c++/116532] New: GCC accepts invaild static int iarr2 alignas(16) jlame646 at gmail dot com
2024-08-29 13:43 ` [Bug c++/116532] " mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).