This is the mail archive of the gcc-bugs@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]

Another void attribute problem



This seems to be another instance of void function attribute 
problems.


void volatile f();

int x()
{
f();
}

Produces

    /tmp/@23145.1: In function `x':
    /tmp/@23145.1:6: invalid use of void expression

The body of the void volatile function compiles fine with the web page
gcc of last night's snapshot.

WOW!! You gotta like test compiling functions on the web!!


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

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