Subject: toolchain/22458: gcc3 c++ is not including /usr/include/g++/backward
To: None <gnats-bugs@gnats.netbsd.org>
From: None <stephen@degler.net>
List: netbsd-bugs
Date: 08/12/2003 14:27:33
>Number:         22458
>Category:       toolchain
>Synopsis:       gcc3 c++ is not including /usr/include/g++/backward
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 12 19:13:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Degler
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD kashmir.degler.net 1.6W NetBSD 1.6W (KASHMIR) #18: Sun Aug 10 18:40:48 EDT 2003 sdegler@kashmir.degler.net:/vol1/NetBSD/kernels/KASHMIR i386
Architecture: i386
Machine: i386
>Description:
	I am under the impression that gcc3's c++ front end is supposed to
	automatically add /usr/include/g++/backward in the include path,
	allowing access to deprecated features by default.
	This does not seem to be the case.
>How-To-Repeat:
	try compiling the following,
	#include <iostream.h>
	int main(int argc, char **argv)
	{
	  std::cout << "Hello world" << std::endl;
	}

	I believe that this should result in a warning about the use of
	deprecated headers, not an error.
	
	Without this feature, a lot of c++ code in pkgsrc will not compile.

>Fix:
	Configure c++ frontend to include /usr/include/g++/backward by
	default.  I think this means defining GPLUSPLUS_BACKWARD_INCLUDE_DIR.
	(I'm not sure about how this is done exactly but it is probably
	done in the reach over makefiles).
>Release-Note:
>Audit-Trail:
>Unformatted: