Date: Mon, 23 Mar 2009 22:50:03 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/120025: gcc(1): warning in C++'s system header Message-ID: <200903232250.n2NMo3BL067235@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/120025; it has been noted by GNATS.
From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@FreeBSD.org, mi@aldan.algebra.com
Cc:
Subject: Re: bin/120025: gcc(1): warning in C++'s system header
Date: Mon, 23 Mar 2009 22:45:46 +0000
I've been unable to recreate the issue here with a simple C++
application built with -Wsystem-headers on 7-STABLE and 8-CURRENT. Do
you have a minimal program which shows the problem? The code and
environment I used was as follows:
> c++ -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
> cat test.cpp
#include <fstream>
#include <iostream>
using namespace std;
int main(void)
{
char filename[PATH_MAX];
cout << "Enter filename: ";
cin >> filename;
ofstream file(filename, ios::out);
file << "Hello World" << endl;
file.close();
return 0;
}
> c++ -Wsystem-headers -march=c3-2 test.cpp -o test
>
--
Bruce
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903232250.n2NMo3BL067235>
