[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #7 from Andrew Pinski  ---
Yes it is the same.
Reduced testcase:
typedef __builtin_va_list __gnuc_va_list;
namespace std { 
  class type_info   {};
}
template
void f(t)
{
  typeid(t);
}
typedef __gnuc_va_list va_list;
void calla(::va_list l) {
  f(l);
}

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

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

Andrew Pinski  changed:

   What|Removed |Added

   Keywords|needs-bisection |

--- Comment #6 from Andrew Pinski  ---
I almost positive it is the same issue as PR 72809 (though using typeinfo
instead of throw).

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

Andrew Pinski  changed:

   What|Removed |Added

   Keywords|needs-reduction |

--- Comment #5 from Andrew Pinski  ---
Reducing ...

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2021-12-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

Andrew Pinski  changed:

   What|Removed |Added

   Keywords|ice-on-invalid-code |ice-on-valid-code,
   ||needs-bisection,
   ||needs-reduction
  Known to fail||4.9.4, 5.4.0, 6.1.0, 6.4.0
  Known to work||7.1.0

--- Comment #4 from Andrew Pinski  ---
Looks to be fixed in GCC 7.1.0+

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2017-07-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-07-05
 Ever confirmed|0   |1

--- Comment #3 from Jonathan Wakely  ---
I not sure this is valid, but GCC still shouldn't crash.

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2017-07-05 Thread rmx12133 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

--- Comment #2 from Stephan Heinrich  ---
Created attachment 41685
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41685=edit
preprocessed

[Bug c++/81321] Segmentation fault - va_list boost_any - gcc5.4.0 - gcc-snapshot

2017-07-05 Thread rmx12133 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81321

--- Comment #1 from Stephan Heinrich  ---
Created attachment 41684
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41684=edit
source code