This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11285] GCC 3.3 C++ for Sparc Solaris assumes system header files are C.
- From: "numien at deathwyrm dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2003 23:05:24 -0000
- Subject: [Bug c++/11285] GCC 3.3 C++ for Sparc Solaris assumes system header files are C.
- References: <20030622170708.11285.numien@deathwyrm.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11285
------- Additional Comments From numien at deathwyrm dot net 2003-06-22 23:05 -------
The real system headers mostly are, yes, the ones I'm creating for my own
development aren't. And those are the ones with problems.
As I mentioned earlier, I reproduced the problem with a very simple set of
files. The contents of the two simple files are as below.
/usr/include/test.h
------------------------
int test (int a);
int test (int a, int b);
------------------------
test.cpp
------------------
#include <test.h>
int main(void) {
return 1;
}
------------------
Also of note, when I put the file in the current directory and include it with
'#include "test.h"' it compiles fine.