public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108278] New: runtime error with -O1 -Wall
@ 2023-01-03 18:52 dcb314 at hotmail dot com
  2023-01-03 22:17 ` [Bug c++/108278] " dcb314 at hotmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-03 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108278
           Summary: runtime error with -O1 -Wall
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 54182
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54182&action=edit
gzipped C++ source code

The attached C++ code does this:

$ ../results/bin/g++ -c -O1 -Wall bug872.cc 
../../trunk.d1/gcc/poly-int.h:753:21: runtime error: signed integer overflow:
4611686018427387903 * 8 cannot be represented in type 'long int'
$ 

The bug first seems to occur sometime between git hash d423e8dc59045d8f,
from a couple of days ago and fee53a3194c0d8b7, from today, a distance
of 14 commits.

I have a reduction running.

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

* [Bug c++/108278] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
@ 2023-01-03 22:17 ` dcb314 at hotmail dot com
  2023-01-04  0:54 ` [Bug middle-end/108278] [13 Regression] " pinskia at gcc dot gnu.org
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-03 22:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced C++ code is

typedef int mbstate_t;
namespace std {
struct Trans_NS___cxx11_basic_string {
  char *c_str();
};
template <typename _Facet> _Facet use_facet(int);
template <typename _ExternT> struct __codecvt_abstract_base {
  typedef _ExternT extern_type;
  int length(int, extern_type *, const extern_type *, long);
};
template <typename, typename _ExternT, typename>
struct codecvt : __codecvt_abstract_base<_ExternT> {};
} // namespace std
template <class T> struct intrusive_ptr {
  intrusive_ptr(T *);
  T *operator->();
};
long attach___trans_tmp_3;
struct basic_ostringstreambuf {
  struct {
    std::Trans_NS___cxx11_basic_string storage;
    long max_size;
  } m_storage_state;
  void attach() {
    attach___trans_tmp_3 = 9223372036854775807 / 2;
    long size = attach___trans_tmp_3;
    m_storage_state.max_size = size;
    length_until_boundary(m_storage_state.storage.c_str(),
                          m_storage_state.max_size);
  }
  void length_until_boundary(char *s, long max_size) {
    int loc;
    std::codecvt fac =
        std::use_facet<std::codecvt<wchar_t, char, mbstate_t>>(loc);
    mbstate_t mbs(fac.length(mbs, s, s + max_size, 0));
  }
};
struct Trans_NS_v2_mt_posix_basic_formatting_ostream {
  basic_ostringstreambuf m_streambuf;
  void attach(std::Trans_NS___cxx11_basic_string) { m_streambuf.attach(); }
};
template <typename>
struct Trans_NS_v2_mt_posix_basic_record_ostream
    : Trans_NS_v2_mt_posix_basic_formatting_ostream {
  typedef std::Trans_NS___cxx11_basic_string string_type;
  void init_stream();
};
struct attribute_value_impl {
  attribute_value_impl(std::Trans_NS___cxx11_basic_string);
  std::Trans_NS___cxx11_basic_string get();
};
template <typename CharT>
void Trans_NS_v2_mt_posix_basic_record_ostream<CharT>::init_stream() {
  typedef attribute_value_impl message_impl_type;
  intrusive_ptr p = new message_impl_type(string_type());
  attach(p->get());
}
template class Trans_NS_v2_mt_posix_basic_record_ostream<char>;

I will have a go at a git bisect in the morning.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
  2023-01-03 22:17 ` [Bug c++/108278] " dcb314 at hotmail dot com
@ 2023-01-04  0:54 ` pinskia at gcc dot gnu.org
  2023-01-04  1:03 ` pinskia at gcc dot gnu.org
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-04  0:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Blocks|                            |63426
   Target Milestone|---                         |13.0
            Summary|runtime error with -O1      |[13 Regression] runtime
                   |-Wall                       |error with -O1 -Wall
          Component|c++                         |middle-end


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426
[Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
  2023-01-03 22:17 ` [Bug c++/108278] " dcb314 at hotmail dot com
  2023-01-04  0:54 ` [Bug middle-end/108278] [13 Regression] " pinskia at gcc dot gnu.org
@ 2023-01-04  1:03 ` pinskia at gcc dot gnu.org
  2023-01-04  8:34 ` dcb314 at hotmail dot com
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-04  1:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the original testcase does (inside _M_max_size):
 return std::size_t(0x7fffffffffffffffL) / sizeof(_Tp);

Which was reduced to just:
    attach___trans_tmp_3 = 9223372036854775807 / 2;

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2023-01-04  1:03 ` pinskia at gcc dot gnu.org
@ 2023-01-04  8:34 ` dcb314 at hotmail dot com
  2023-01-04  9:08 ` dcb314 at hotmail dot com
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04  8:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
Trying revision aeee4812442c996f in bisect.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2023-01-04  8:34 ` dcb314 at hotmail dot com
@ 2023-01-04  9:08 ` dcb314 at hotmail dot com
  2023-01-04  9:12 ` dcb314 at hotmail dot com
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04  9:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #3)
> Trying revision aeee4812442c996f in bisect.

That seems fine, so trying 3b6cac2b44b384cd.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2023-01-04  9:08 ` dcb314 at hotmail dot com
@ 2023-01-04  9:12 ` dcb314 at hotmail dot com
  2023-01-04  9:21 ` dcb314 at hotmail dot com
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04  9:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from David Binderman <dcb314 at hotmail dot com> ---
Another runtime bug, probably related:

../../trunk.d1/gcc/expmed.cc:3282:26: runtime error: signed integer overflow:
-9223372036854775808 - 1 cannot be represented in type 'long int'

I am not sure if this one should be a separate bug report or not.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2023-01-04  9:12 ` dcb314 at hotmail dot com
@ 2023-01-04  9:21 ` dcb314 at hotmail dot com
  2023-01-04  9:38 ` dcb314 at hotmail dot com
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04  9:21 UTC (permalink / raw)
  To: gcc-bugs

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
The Author list for the revisions under test is:

Author: GCC Administrator <gccadmin@gcc.gnu.org>
Author: Alexander Monakov <amonakov@ispras.ru>
Author: Florian Weimer <fweimer@redhat.com>
Author: Florian Weimer <fweimer@redhat.com>
Author: Florian Weimer <fweimer@redhat.com>
Author: Iain Sandoe <iain@sandoe.co.uk>
Author: Jakub Jelinek <jakub@redhat.com>

Alex, Iain and Jakub make what look like unrelated changes, so adding
Florian for their opinion.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2023-01-04  9:21 ` dcb314 at hotmail dot com
@ 2023-01-04  9:38 ` dcb314 at hotmail dot com
  2023-01-04  9:39 ` fw at gcc dot gnu.org
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04  9:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #4)
> (In reply to David Binderman from comment #3)
> > Trying revision aeee4812442c996f in bisect.
> 
> That seems fine, so trying 3b6cac2b44b384cd.

That seems ok, so git range seems to be: 3b6cac2b44b384cd..fee53a3194c0d8b7

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2023-01-04  9:38 ` dcb314 at hotmail dot com
@ 2023-01-04  9:39 ` fw at gcc dot gnu.org
  2023-01-04 11:08 ` jakub at gcc dot gnu.org
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: fw at gcc dot gnu.org @ 2023-01-04  9:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Florian Weimer <fw at gcc dot gnu.org> ---
I believe the revert in 455acc43518744b89d6a795bbba5045bd228060b should have
fixed this?

I also brought up the initialization issue on the gcc list:

Default initialization of poly-ints
<https://gcc.gnu.org/pipermail/gcc/2023-January/240456.html>

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (8 preceding siblings ...)
  2023-01-04  9:39 ` fw at gcc dot gnu.org
@ 2023-01-04 11:08 ` jakub at gcc dot gnu.org
  2023-01-04 11:09 ` jakub at gcc dot gnu.org
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-04 11:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If it is the unwinder stuff, then it shouldn't affect anything but
-fbuilding-libgcc, no?  The macros were predefined only if -fbuilding-libgcc,
and __builtin_init_dwarf_reg_size_table is only called in libgcc.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (9 preceding siblings ...)
  2023-01-04 11:08 ` jakub at gcc dot gnu.org
@ 2023-01-04 11:09 ` jakub at gcc dot gnu.org
  2023-01-04 16:11 ` jakub at gcc dot gnu.org
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-04 11:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
BTW, please use g: prefix for git hashes or r13-4989-g345dffd0d4ebff7 or
r13-4989 styles, anything else is quite useless as it doesn't create hyperlinks
in bugzilla.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (10 preceding siblings ...)
  2023-01-04 11:09 ` jakub at gcc dot gnu.org
@ 2023-01-04 16:11 ` jakub at gcc dot gnu.org
  2023-01-04 16:14 ` dcb314 at hotmail dot com
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-04 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Anyway, can't reproduce with current trunk (just stage1 built with
-fsanitize=undefined).

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (11 preceding siblings ...)
  2023-01-04 16:11 ` jakub at gcc dot gnu.org
@ 2023-01-04 16:14 ` dcb314 at hotmail dot com
  2023-01-04 16:16 ` dcb314 at hotmail dot com
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Jakub Jelinek from comment #10)
> BTW, please use g: prefix for git hashes or r13-4989-g345dffd0d4ebff7 or
> r13-4989 styles, anything else is quite useless as it doesn't create
> hyperlinks in bugzilla.

Let's try that out:

g:d423e8dc59045d8f and g:fee53a3194c0d8b7

I am a novice at git, so where does the 4989 in r13-4989-g* come from ?
The 4989 looks like a useful serial number to me.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (12 preceding siblings ...)
  2023-01-04 16:14 ` dcb314 at hotmail dot com
@ 2023-01-04 16:16 ` dcb314 at hotmail dot com
  2023-01-05  8:46 ` dcb314 at hotmail dot com
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-04 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #12)
> Let's try that out:
> 
> g:d423e8dc59045d8f and g:fee53a3194c0d8b7

Seems to work. Good.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (13 preceding siblings ...)
  2023-01-04 16:16 ` dcb314 at hotmail dot com
@ 2023-01-05  8:46 ` dcb314 at hotmail dot com
  2023-01-09 17:24 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-05  8:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Florian Weimer from comment #8)
> I believe the revert in 455acc43518744b89d6a795bbba5045bd228060b should have
> fixed this?

It looks to me like it does.

> I also brought up the initialization issue on the gcc list:
> 
> Default initialization of poly-ints
> <https://gcc.gnu.org/pipermail/gcc/2023-January/240456.html>

This is the second time I have noticed this issue has occurred with a 
data type in gcc. It would be safer if there was a default initialisation
to zero for all gcc data types.

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (14 preceding siblings ...)
  2023-01-05  8:46 ` dcb314 at hotmail dot com
@ 2023-01-09 17:24 ` rguenth at gcc dot gnu.org
  2023-01-09 17:26 ` dcb314 at hotmail dot com
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-09 17:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2023-01-09

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
So this bug is fixed?

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (15 preceding siblings ...)
  2023-01-09 17:24 ` rguenth at gcc dot gnu.org
@ 2023-01-09 17:26 ` dcb314 at hotmail dot com
  2023-01-09 18:03 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-09 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Richard Biener from comment #15)
> So this bug is fixed?

Jakub and I seem to think so. Good enough ?

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

* [Bug middle-end/108278] [13 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (16 preceding siblings ...)
  2023-01-09 17:26 ` dcb314 at hotmail dot com
@ 2023-01-09 18:03 ` jakub at gcc dot gnu.org
  2023-04-26  6:57 ` [Bug middle-end/108278] [13/14 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-09 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We know the commit introduced UB on the compiler side, but what I don't
understand is why it triggered on the testcases you've provided.  It surely
introduced UB when compiling libgcc/unwind-dw2.c or during predefining macros
with -fbuilding-libgcc, but I think the problematic code with uninitialized
array of poly_ints could happen at different times.

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

* [Bug middle-end/108278] [13/14 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (17 preceding siblings ...)
  2023-01-09 18:03 ` jakub at gcc dot gnu.org
@ 2023-04-26  6:57 ` rguenth at gcc dot gnu.org
  2023-07-27  9:25 ` rguenth at gcc dot gnu.org
  2024-03-22 14:01 ` law at gcc dot gnu.org
  20 siblings, 0 replies; 22+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-26  6:57 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|13.0                        |13.2

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 13.1 is being released, retargeting bugs to GCC 13.2.

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

* [Bug middle-end/108278] [13/14 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (18 preceding siblings ...)
  2023-04-26  6:57 ` [Bug middle-end/108278] [13/14 " rguenth at gcc dot gnu.org
@ 2023-07-27  9:25 ` rguenth at gcc dot gnu.org
  2024-03-22 14:01 ` law at gcc dot gnu.org
  20 siblings, 0 replies; 22+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-27  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|13.2                        |13.3

--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 13.2 is being released, retargeting bugs to GCC 13.3.

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

* [Bug middle-end/108278] [13/14 Regression] runtime error with -O1 -Wall
  2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
                   ` (19 preceding siblings ...)
  2023-07-27  9:25 ` rguenth at gcc dot gnu.org
@ 2024-03-22 14:01 ` law at gcc dot gnu.org
  20 siblings, 0 replies; 22+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-22 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu.org
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #20 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Per c#16.

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

end of thread, other threads:[~2024-03-22 14:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 18:52 [Bug c++/108278] New: runtime error with -O1 -Wall dcb314 at hotmail dot com
2023-01-03 22:17 ` [Bug c++/108278] " dcb314 at hotmail dot com
2023-01-04  0:54 ` [Bug middle-end/108278] [13 Regression] " pinskia at gcc dot gnu.org
2023-01-04  1:03 ` pinskia at gcc dot gnu.org
2023-01-04  8:34 ` dcb314 at hotmail dot com
2023-01-04  9:08 ` dcb314 at hotmail dot com
2023-01-04  9:12 ` dcb314 at hotmail dot com
2023-01-04  9:21 ` dcb314 at hotmail dot com
2023-01-04  9:38 ` dcb314 at hotmail dot com
2023-01-04  9:39 ` fw at gcc dot gnu.org
2023-01-04 11:08 ` jakub at gcc dot gnu.org
2023-01-04 11:09 ` jakub at gcc dot gnu.org
2023-01-04 16:11 ` jakub at gcc dot gnu.org
2023-01-04 16:14 ` dcb314 at hotmail dot com
2023-01-04 16:16 ` dcb314 at hotmail dot com
2023-01-05  8:46 ` dcb314 at hotmail dot com
2023-01-09 17:24 ` rguenth at gcc dot gnu.org
2023-01-09 17:26 ` dcb314 at hotmail dot com
2023-01-09 18:03 ` jakub at gcc dot gnu.org
2023-04-26  6:57 ` [Bug middle-end/108278] [13/14 " rguenth at gcc dot gnu.org
2023-07-27  9:25 ` rguenth at gcc dot gnu.org
2024-03-22 14:01 ` law 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).