This is the mail archive of the
libstdc++-prs@sourceware.cygnus.com
mailing list for the libstdc++ project.
libstdc++/11: invalid type for default argument
- To: libstdc++-gnats at sourceware dot cygnus dot com
- Subject: libstdc++/11: invalid type for default argument
- From: aschmidt at lynet dot de
- Date: 14 Oct 1999 11:26:40 -0000
- Reply-To: aschmidt at lynet dot de
- Resent-Cc: libstdc++-prs at sourceware dot cygnus dot com
- Resent-Reply-To: libstdc++-gnats@sourceware.cygnus.com, aschmidt@lynet.de
- Resent-To: nobody at sourceware dot cygnus dot com
>Number: 11
>Category: libstdc++
>Synopsis: invalid type for default argument
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 14 04:27:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: aschmidt@lynet.de
>Release: gcc 2.95.1
>Organization:
>Environment:
sparc-sun-solaris2.6
>Description:
I want to compile a c++-program, which includes
'iostream.h'. I get the following errors:
/opt/gcc-2.95.1/include/g++/iostream.h:50: invalid type `void *' for default argument to `ostream *'
/opt/gcc-2.95.1/include/g++/iostream.h:123: invalid type `void *' for default argument to `ostream *'
/opt/gcc-2.95.1/include/g++/iostream.h:231: invalid type `void *' for default argument to `ostream *'
and the compiling ends.
This means: The default argument NULL is not of type 'ostream*'.
With 'gcc 2.8.1' i gets the same messages, but they
were only warnings.
How can i fix it? The changing of the "standard includes"
is a bad idea.
Thanks,
Andreas
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: