bin/120025: gcc(1): warning in C++'s system header

Bruce Cran bruce at cran.org.uk
Mon Mar 23 15:50:03 PDT 2009


The following reply was made to PR bin/120025; it has been noted by GNATS.

From: Bruce Cran <bruce at cran.org.uk>
To: bug-followup at FreeBSD.org, mi at 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


More information about the freebsd-bugs mailing list