This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7614: Warning when function returning reference to volatile called in void context


Synopsis: Warning when function returning reference to volatile called in void context

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 15:54:31 2002
State-Changed-Why:
    not a bug. references to volatile objects are evil. For instance, your wibble function contains
    'return x', which looks like a read of x - but it isn't.
    
    pointers are different, you have to put a * infront
    to dereference them 

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7614


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]