[Bug target/60556] tip of tree crash with mips compiler
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 17 22:16:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60556
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #10)
> I should note the code is undefined and has (uint64_t)&stat and that itself
> is causing the issue. If I change it to be
> (uint64_t)(unsigned long)&stat, GCC does not crash.
But using long instead of unsigned long causes the crash.
Reduced testcase:
int g (int);
unsigned long long f(void) {
return (unsigned long long)(long)&g;
}
This happens with both the C and C++ front-ends.
More information about the Gcc-bugs
mailing list