Bug 76165 - g++ is broken
g++ is broken
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-10-17 15:06 EDT by Ed Friedman
Modified: 2007-04-18 12:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-10-17 15:06:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ed Friedman 2002-10-17 15:06:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.18-10 i686)

Description of problem:
Programs that compiled just fine under RedHat 7.3 and earlier with g++ now fail
to compile at all under RedHat 8.0

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.run g++ on the following program:
int main() {
cout << "Hello, world!" << endl;
2.It works fine under RedHat 7.3 and below
3.It fails to compile under RedHat 8.0

Actual Results:  test2.C: In function `int main()':
test2.C:5: `cout' undeclared (first use this function)
test2.C:5: (Each undeclared identifier is reported only once for each function 
   it appears in.)
test2.C:5: `endl' undeclared (first use this function)

Expected Results:  No error messages should appear

Additional info:
Comment 1 Jakub Jelinek 2002-10-17 15:37:55 EDT
Your testcase is not ISO C++.
You need to use std::cout and std::endl or add using directive (plus
you forgot to include header).

Note You need to log in before you can comment on or make changes to this bug.