This is the mail archive of the libstdc++-prs@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/11: invalid type for default argument



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]