public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111819] New: GCC: 14: internal compiler error: in fold_offsetof, at c-family/c-common.cc:6877
@ 2023-10-15  1:44 141242068 at smail dot nju.edu.cn
  2023-10-15  1:48 ` [Bug c/111819] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-15  1:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111819
           Summary: GCC: 14: internal compiler error: in fold_offsetof, at
                    c-family/c-common.cc:6877
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

The bug triggering program:
```
long long a;
void f(_Complex double x) {
  (int *)&__imag(
      *(_Complex double *)((char *)&a + 16));
}
```

This bug can be verified at: https://godbolt.org/z/6d98f8YT7

The full stack dump:
```
<source>: In function 'f':
<source>:4:7: internal compiler error: in fold_offsetof, at
c-family/c-common.cc:6877
    4 |       *(_Complex double *)((char *)&a + 16));
      |       ^
0x22ff3ee internal_error(char const*, ...)
        ???:0
0x9fc0a8 fancy_abort(char const*, int, char const*)
        ???:0
0xa4f1d8 build_unary_op(unsigned int, tree_code, tree_node*, bool)
        ???:0
0xa5c176 parser_build_unary_op(unsigned int, tree_code, c_expr)
        ???:0
0xaa468d c_parse_file()
        ???:0
0xb17919 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
```

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

* [Bug c/111819] GCC: 14: internal compiler error: in fold_offsetof, at c-family/c-common.cc:6877
  2023-10-15  1:44 [Bug c/111819] New: GCC: 14: internal compiler error: in fold_offsetof, at c-family/c-common.cc:6877 141242068 at smail dot nju.edu.cn
@ 2023-10-15  1:48 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-15  1:48 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 105555.

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

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

end of thread, other threads:[~2023-10-15  1:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15  1:44 [Bug c/111819] New: GCC: 14: internal compiler error: in fold_offsetof, at c-family/c-common.cc:6877 141242068 at smail dot nju.edu.cn
2023-10-15  1:48 ` [Bug c/111819] " pinskia 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).