From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27260 invoked by alias); 25 May 2011 17:27:50 -0000 Received: (qmail 27221 invoked by uid 22791); 25 May 2011 17:27:48 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_CX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 May 2011 17:27:34 +0000 Received: by pvc30 with SMTP id 30so3721855pvc.20 for ; Wed, 25 May 2011 10:27:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.44.37 with SMTP id b5mr1839026pbm.512.1306344454118; Wed, 25 May 2011 10:27:34 -0700 (PDT) Received: by 10.142.69.21 with HTTP; Wed, 25 May 2011 10:27:34 -0700 (PDT) In-Reply-To: <8CDE90EFF98837B-1B0-219F6@webmail-d136.sysops.aol.com> References: <62890.10.0.66.17.1305752970.squirrel@interact.purplecow.org> <4DD4B6FD.80803@onetel.net> <4DD60F05.4040102@onetel.net> <8CDE8CD230DB1C7-1E2C-1A604@webmail-d095.sysops.aol.com> <8CDE8F6A9A91E5F-1B0-1AB03@webmail-d136.sysops.aol.com> <8CDE90EFF98837B-1B0-219F6@webmail-d136.sysops.aol.com> Date: Wed, 25 May 2011 18:12:00 -0000 Message-ID: Subject: Re: __gnu_cxx error in OpenSolaris From: Jonathan Wakely To: asyropoulos@aol.com Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00376.txt.bz2 On 25 May 2011 17:21, wrote: > > > > >>> This is supposed to be the GNU C/C+/ compiler not the compiler of the >>> GNU C, >>> GNU C++, etc. languages, so this is not an answer. >> >> I'm not sure why you say that. > > From http://gcc.gnu.org/: > > #The GNU Compiler Collection includes front ends for C, C++, Objective-C, > Fortran, Java, Ada, and Go, as well as > #libraries for these languages (libstdc++, libgcj,...). Did you miss this bit: ********** > GCC was originally > written as the compiler for the GNU operating system. ********** > #The GNU system was developed to be 100% free software, free in the sense > that it respects the user's freedom. > > Here it is clearly stated that this is a C, C++, etc. compiler not someth= ing It doesn't say "ISO C". > else. And when you press the C link it > shows to what degree the compiler supports the standard. That link was only very recently added: http://gcc.gnu.org/ml/gcc/2011-05/msg00102.html That page was chosen because there isn't a better page for the C front-end, it's not really a good choice. It documents the conformance to C99, and the default for GCC is -std=3Dgnu90, not even -std=3Dgnu99 let alone -std=3Dc99 >=A0So what don't you > understand? You're arguing with two maintainers of GCC about what GCC is. I can't see any result except making yourself look silly. >> The compiler is a sharp knife. =A0You can make it do what you want. > > No it is a tool that is supposed to work compilers work. I'm not even sure what you're trying to say here. It's a tool, yes. A very flexible one, so there have to be some defaults chosen for its behaviour. No set of defaults will please everyone, so on that basis keeping the same defaults as we have now causes the least disruption. >> The default behaviour is not going to change. > > Too bad for GNU and gcc. And I had the impression that this is all about > standards > that everyone should follow... Your impression was wrong, it's not "all about" any single thing, because what defines a useful compiler means different things to different people. I care very much about making G++ conform closely to the C++ standard so I can use it to write conforming code whenever possible, but I disagree that all extensions should be disabled by default. If you want GCC to follow the standards you can use the appropriate switches. Even if your preference is "right", changing the defaults would force your opinion on everyone else and cause a lot of wasted time and anger.