[Bug c++/11285] GCC 3.3 C++ for Sparc Solaris assumes system header files are C.

numien at deathwyrm dot net gcc-bugzilla@gcc.gnu.org
Sun Jun 22 23:05:00 GMT 2003


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.



More information about the Gcc-bugs mailing list