c++/96

gdr@gcc.gnu.org gdr@gcc.gnu.org
Sun Apr 1 00:00:00 GMT 2001


The following reply was made to PR c++/96; it has been noted by GNATS.

From: gdr@gcc.gnu.org
To: ao@infinet.com, gcc-gnats@gcc.gnu.org, gdr@gcc.gnu.org,
  martin@loewis.home.cs.tu-berlin.de, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/96
Date: 15 Feb 2001 12:21:07 -0000

 Synopsis: No warning with uninitialised reference...
 
 Responsible-Changed-From-To: unassigned->gdr
 Responsible-Changed-By: gdr
 Responsible-Changed-When: Thu Feb 15 04:21:06 2001
 Responsible-Changed-Why:
     Analysed
 State-Changed-From-To: analyzed->closed
 State-Changed-By: gdr
 State-Changed-When: Thu Feb 15 04:21:06 2001
 State-Changed-Why:
     Hi,
     
     This is not a bug in the compiler.  It is just the way C/C++
     works: Just after `bar& var', the name 'var' is in scope and
     can serve to initialize itself.  It is just that referencing it later
     will cause undefined behaviour.
     
     -- Gaby
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=96&database=gcc



More information about the Gcc-prs mailing list