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]

(void)ing unreferenced parameters



I can't find in the standard why this program should give:

GNU C++ version gcc-2.96 19990602 (experimental) (i960-ashos-elf)
compiled by GNU C version egcs-2.93.12 19990318 (gcc2 ss-980929
experimental).
(void)ing unreferenced parameters.cpp: In function `void monk(const A
&)':
(void)ing unreferenced parameters.cpp:6: invalid use of undefined type
`const class A'
(void)ing unreferenced parameters.cpp:2: forward declaration of `const
class A'

class A;

void monk (const A& a)
{
 (void) a;
}

--



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