public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/35835] Compiler fails to recognize match of local "extern" declarations
Date: Sat, 05 Apr 2008 20:59:00 -0000	[thread overview]
Message-ID: <20080405205848.28056.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35835-12742@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-04-05 20:58 -------
(works with the C frontend)

We don't share the decls of g_iValue properly, but doesn't this program
violate the ODR anyway?

void SetValue(int) (iD.2309)
{
<bb 2>:
  g_iValueD.2312 ={v} iD.2309_1(D);
  return;

}

int GetValue() ()
{
  intD.2 D.2316;

<bb 2>:
  D.2316_1 = g_iValueD.2315;
  return D.2316_1;

}

int main() ()
{
  intD.2 D.2333;
  intD.2 D.2333;
  intD.2 iValueSaveD.2320;

<bb 2>:
  iValueSaveD.2320_6 = g_iValueD.2315;
  g_iValueD.2312 ={v} 1;
  D.2333_7 = g_iValueD.2315;
  printf (&"%d\n"[0], D.2333_7);
  g_iValueD.2312 ={v} iValueSaveD.2320_6;
  return 0;

}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35835


  parent reply	other threads:[~2008-04-05 20:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-05 18:33 [Bug c++/35835] New: " oder at eleks dot lviv dot ua
2008-04-05 19:56 ` [Bug c++/35835] " pinskia at gcc dot gnu dot org
2008-04-05 20:02 ` oder at eleks dot lviv dot ua
2008-04-05 20:05 ` [Bug middle-end/35835] " pinskia at gcc dot gnu dot org
2008-04-05 20:59 ` rguenth at gcc dot gnu dot org [this message]
2008-04-05 21:16 ` [Bug c++/35835] " pinskia 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=20080405205848.28056.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).