gcc

Activity log for bug #1543019

Date Who What changed Old value New value Message
2016-02-08 08:14:17 Kip Warner bug added bug
2016-02-08 08:14:29 Kip Warner affects raspbian gcc
2016-02-08 08:16:33 Kip Warner description Looks as though I have discovered a bug in all supported versions of GCC. $ cat cra.ii namespace streflop { template <int> struct A { operator long double() const; }; namespace SoftFloat { typedef struct { long long low; int high; } floatx80; floatx80 fn1(int); } using namespace SoftFloat; template <> A<32>::operator long double() const { long double a; *reinterpret_cast<floatx80 *>(&a) = fn1(0); return a; } } $ g++ -c -m32 -O3 cra.ii cra.ii: In member function ‘streflop::A<<anonymous> >::operator long double() const [with int <anonymous> = 32]’: cra.ii:13:51: internal compiler error: in store_bit_field_1, at expmed.c:765 *reinterpret_cast<floatx80 *>(&a) = fn1(0); ^ Looks as though I have discovered a bug in all supported versions of GCC. $ cat cra.ii namespace streflop { template <int> struct A { operator long double() const; }; namespace SoftFloat { typedef struct {   long long low;   int high; } floatx80; floatx80 fn1(int); } using namespace SoftFloat; template <> A<32>::operator long double() const {   long double a;   *reinterpret_cast<floatx80 *>(&a) = fn1(0);   return a; } } $ g++ -c -m32 -O3 cra.ii cra.ii: In member function ‘streflop::A<<anonymous> >::operator long double() const [with int <anonymous> = 32]’: cra.ii:13:51: internal compiler error: in store_bit_field_1, at expmed.c:765          *reinterpret_cast<floatx80 *>(&a) = fn1(0);                                                    ^ Upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69715
2016-02-08 09:05:29 peter green bug added subscriber peter green
2016-02-08 18:16:55 Kip Warner bug watch added https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69715
2016-02-08 18:16:55 Kip Warner gcc: importance Undecided Unknown
2016-02-08 18:16:55 Kip Warner gcc: status New Unknown
2016-02-08 18:16:55 Kip Warner gcc: remote watch GCC Bugzilla #69715
2016-02-08 22:32:36 Kip Warner bug watch added https://springrts.com/mantis/view.php?id=5058
2016-02-08 22:32:36 Kip Warner bug task added spring
2016-02-08 23:37:59 Bug Watch Updater spring: status Unknown Incomplete
2016-02-09 03:17:30 peter green removed subscriber peter green
2016-02-12 17:38:36 Kip Warner gcc: importance Unknown Undecided
2016-02-12 17:38:36 Kip Warner gcc: status Unknown New
2016-02-12 17:38:36 Kip Warner gcc: remote watch GCC Bugzilla #69715
2016-02-12 17:39:07 Kip Warner gcc: importance Undecided Unknown
2016-02-12 17:39:07 Kip Warner gcc: status New Unknown
2016-02-12 17:39:07 Kip Warner gcc: remote watch GCC Bugzilla #69715
2016-02-14 02:10:04 Bug Watch Updater spring: status Incomplete In Progress