c++/608: g++ warns for pasting without reason

jorma.laaksonen@hut.fi jorma.laaksonen@hut.fi
Thu Oct 5 01:46:00 GMT 2000


>Number:         608
>Category:       c++
>Synopsis:       g++ warns for pasting without reason
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 05 01:46:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jorma Laaksonen
>Release:        gcc-2.96
>Organization:
>Environment:
RedHat Linux 7.0 gcc-2.96-54
>Description:
Preprocessing a c++ file gives a warning message which
in my opinion is reasonless.

The message is triggered by a ## preprocessing operator
preceded by a structure variable name and dot.

The message is:
warning: pasting would not give a valid preprocessing token
>How-To-Repeat:
g++ -E gcc-test.C
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gcc-test.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc-test.C"

CiNkZWZpbmUgc2V0KGEsIGIpIHMuIyNhID0gYgoKbWFpbigpIHsKICBzdHJ1Y3Qge2ludCB4O30g
czsKICBzZXQoeCwgMSk7Cn0KCg==


More information about the Gcc-bugs mailing list