Bug 5 - [1.36.3/1.37/.../3.2/3.3/3.4 regression] C++ sucks, can't you make it better?
Summary: [1.36.3/1.37/.../3.2/3.3/3.4 regression] C++ sucks, can't you make it better?
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: unknown
: P3 normal
Target Milestone: 3.4.0
Assignee: Jason Merrill
URL:
Keywords: accepts-invalid, diagnostic, documentation, missed-optimization, rejects-valid
: 40000 (view as bug list)
Depends on:
Blocks: 40000
  Show dependency treegraph
 
Reported: 2000-02-10 13:45 UTC by Joseph S. Myers
Modified: 2009-05-01 22:51 UTC (History)
7 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph S. Myers 2000-02-10 13:45:59 UTC
[C89 regression] C++ has too much stuff.  Make it smaller.

Release:
C++98
Comment 1 Joseph S. Myers 2000-02-10 13:45:59 UTC
Fix:
Removing templates, namespaces, classes and operator overloading should do it.  You can keep exceptions, they're useful.
Comment 2 Jason Merrill 2000-02-10 15:17:40 UTC
Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-Why: Why do I have to say anything here?
Comment 3 Jason Merrill 2000-02-10 15:17:40 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Insolence will not be tolerated.  Obey C++!  Trust C++!
Comment 4 Jason Merrill 2000-02-10 23:17:40 UTC
From: jason@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, jason@cygnus.com, jason@gcc.gnu.org,
  jsm@cygnus.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/5
Date: 10 Feb 2000 23:17:40 -0000

 Synopsis: C++ sucks, can't you make it better?
 
 Responsible-Changed-From-To: unassigned->jason
 Responsible-Changed-By: jason
 Responsible-Changed-When: Thu Feb 10 15:17:40 2000
 Responsible-Changed-Why:
     Why do I have to say anything here?
 State-Changed-From-To: open->closed
 State-Changed-By: jason
 State-Changed-When: Thu Feb 10 15:17:40 2000
 State-Changed-Why:
     Insolence will not be tolerated.  Obey C++!  Trust C++!
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=5&database=gcc
Comment 5 Neil Booth 2002-11-15 00:20:30 UTC
State-Changed-From-To: closed->analyzed
State-Changed-Why: I've just noticed this bug has not yet been fixed.
    It's a C89 regression, so I've marked it as such.
    I've also changed its class to "pessimizes code", which matches my experience.
Comment 6 David Billinghurst 2002-11-15 14:00:33 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: Work around exists.  Use flag "-c x"
Comment 7 Daniel Berlin 2002-11-15 17:10:12 UTC
From: Daniel Berlin <dberlin@dberlin.org>
To: billingd@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>, <jason@gcc.gnu.org>, <jsm@cygnus.com>,
	<gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: c++/5: C++ sucks, can't you make it better?
Date: Fri, 15 Nov 2002 17:10:12 -0500 (EST)

 On 15 Nov 2002 billingd@gcc.gnu.org wrote:
 
 > Synopsis: C++ sucks, can't you make it better?
 > 
 > State-Changed-From-To: analyzed->closed
 > State-Changed-By: billingd
 > State-Changed-When: Fri Nov 15 14:00:33 2002
 > State-Changed-Why:
 >     Work around exists.  Use flag "-c x"
 
 Err, you mean -x c.
 
 You must be used to programming in C, where a[5] is equivalent to 5[a].
 :P
Comment 8 Wolfgang Bangerth 2003-06-20 02:25:16 UTC
Still hasn't been fixed :-( At least C has recently become something like 
exceptions, so the C->C++ regression isn't so bad any more.

I suggest adding templates to C, at which point we can probably
finally forget about this PR.

W.
Comment 9 Andrew Pinski 2003-06-20 02:29:42 UTC
No We need more Objective-C bugs as there are way less of them than C++ ones.  Woops I forgot 
Objective-C is a much smaller language.
Comment 10 Joe Buck 2004-04-23 04:28:17 UTC
This one is cute, but I don't want it at the top of the release notes list for
3.4.0.

Since I'm a C++ programmer, I'm going to change it to RESOLVED/WORKSFORME.
Ideally, C++ haters would be able to have a magic filter marking it as
RESOLVED/WONTFIX instead.
Comment 11 Joe Buck 2004-04-23 04:30:14 UTC
As I said, it works for me.  I've been writing C++ for 14 years now, so my brain
is damaged.  It's a fine language, it really, really is.  Damn, dumped core *again*?
Comment 12 Wolfgang Bangerth 2004-04-23 15:54:41 UTC
I would also like to state that without C++, we would have far less to 
do in gcc. How would we be supposed to become famous gcc hackers if  
we only had to deal with small, simple, and orthogonal languages? C++ 
is the material that allows heros to enter the scenes (imagine how 
boring fairy tales and Greek mythology were if they didn't have dragons 
and monsters at the time...). 
 
W. 
Comment 13 Paolo Bonzini 2009-04-28 18:12:27 UTC
*** Bug 39949 has been marked as a duplicate of this bug. ***
Comment 14 Andrew Pinski 2009-05-01 22:51:35 UTC
*** Bug 40000 has been marked as a duplicate of this bug. ***