| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On May 2, 2006, at 8:55 AM, Óscar Morales Vivó wrote:
I don't find any bugs reported against this (either in Radar or in FSF's bug database). A simple test like this compiles and executes successfully with gcc 4.0.1 in Xcode 2.2.1: int main (int argc, char * const argv[]) { std::cout << "Hello, World!\n"; switch (argc) { case a: std::cout << "No args" << std::endl; break; case b: std::cout << "One arg" << std::endl; break; case c: std::cout << "Two args" << std::endl; break; } switch (argc) { case a: std::cout << "Still no args" << std::endl; break; case b: std::cout << "Still one arg" << std::endl; break; case c: std::cout << "Still two args" << std::endl; break; } return 0; } So perhaps you are doing something different? Chris |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >Is this a known GCC bug? (From: Óscar Morales Vivó <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.