|
From: | Nils Springob |
Subject: | [avr-gcc-list] namespace::main() function c++ bug |
Date: | Fri, 23 Sep 2005 10:51:38 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Hi, I think I found a bug in avr-gcc:Every function called main() gets the stack-setup-code, even when it is inside a namespace.
Example: namespace threadA { void main (void * p) { ... } }this function gets the same code as the "real" main function. I am not sure if it is allowed to name a function "main" inside a namespace, but the compiler gives no warning message.
Regards, Nils
[Prev in Thread] | Current Thread | [Next in Thread] |