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

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

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


From: Haase Bjoern (PT-BEU/EMT) *
Subject: AW: [avr-gcc-list] namespace::main() function c++ bug
Date: Fri, 23 Sep 2005 12:55:10 +0200

I am convinced that this bug will soon be fixed. I am working on an issue that 
will resolve it at the same time. Be patient.

Yours,

Bjoern.

 

-----Urspr√ľngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Nils Springob
Gesendet: Freitag, 23. September 2005 10:52
An: address@hidden
Betreff: [avr-gcc-list] namespace::main() function c++ bug

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


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list







reply via email to

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