avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] namespace::main() function c++ bug


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]