This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6857: Missing space after pointer/reference types in warning.



>Number:         6857
>Category:       c++
>Synopsis:       Missing space after pointer/reference types in warning.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 29 06:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     carlo@alinoe.com
>Release:        3.0.x and 3.1
>Organization:
>Environment:

>Description:
Missing spaces in warning:

troep.cc:2: conflicting types for `int&foo'
troep.cc:1: previous declaration as `int*foo'
troep.cc:2: `foo' declared as reference but not initialized

Should be `int& foo' and `int* foo'.
>How-To-Repeat:
Compile:

int* foo;
int& foo;

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