public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/40502] [4.5 Regression] crash in cp_diagnostic_starter
Date: Sat, 27 Jun 2009 20:07:00 -0000	[thread overview]
Message-ID: <20090627200716.23422.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40502-9596@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2009-06-27 20:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-20 12:33 [Bug c++/40502] New: " dcb314 at hotmail dot com
2009-06-20 12:34 ` [Bug c++/40502] " dcb314 at hotmail dot com
2009-06-20 13:07 ` [Bug middle-end/40502] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-06-22  5:33 ` pinskia at gcc dot gnu dot org
2009-06-22  5:34 ` pinskia at gcc dot gnu dot org
2009-06-27 20:07 ` reichelt at gcc dot gnu dot org [this message]
2009-07-09 15:42 ` rguenth at gcc dot gnu dot org
2009-07-10  8:18 ` jakub at gcc dot gnu dot org
2009-07-10 11:50 ` manu at gcc dot gnu dot org
2009-07-10 11:57 ` jakub at gcc dot gnu dot org
2009-07-10 22:32 ` jakub at gcc dot gnu dot org
2009-07-10 22:37 ` jakub at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090627200716.23422.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).