[Bug middle-end/40502] [4.5 Regression] crash in cp_diagnostic_starter
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 27 20:07:00 GMT 2009
------- Comment #5 from reichelt at gcc dot gnu dot org 2009-06-27 20:07 -------
Reduced testcase:
===============================================================
struct A
{
char x[12], y[35];
};
struct B
{
char z[50];
};
inline void foo(char* dest, const char* __restrict src, __SIZE_TYPE__ n)
{
__builtin___strncpy_chk (dest, src, n, 0);
}
void bar(const char*, int);
inline void baz(int i)
{
char s[128], t[32];
bar(s, 0);
bar(t, i);
A a;
B b;
foo(a.y, b.z, 36);
}
void quus()
{
baz(0);
}
===============================================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40502
More information about the Gcc-bugs
mailing list