Another void attribute problem

Joel Sherrill joel.sherrill@OARcorp.com
Wed Mar 29 14:55:00 GMT 2000


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


More information about the Gcc-bugs mailing list