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++/8783: Macros in #include directive not expanded correctly


>Number:         8783
>Category:       c++
>Synopsis:       Macros in #include directive not expanded correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 02 04:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     struppi@acm.org
>Release:        unknown-1.0
>Organization:
>Environment:
Debian GNU/Linux 3.0 (woody), gcc 3.2.1/cpp-3.2
>Description:
The macro isn't expanded any more. Expected to include file onetwothree.h during compile, but an error is reported:

p.cc:5:16: warning: extra tokens at end of #include directive
p.cc:5:41: one: No such file or directory

With cpp included in gcc 2.95.4 the macro expands correctly.
>How-To-Repeat:
cpp-3.2 p.cc
>Fix:

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

CiNkZWZpbmUgbWtfY3BwX3N0cih4KSBta19jcHBfc3RyXyh4KQojZGVmaW5lIG1rX2NwcF9zdHJf
KHgpICN4CgojaW5jbHVkZSAib25lIiBta19jcHBfc3RyKHR3bykgInRocmVlLmgiCgpwcmUgbWtf
Y3BwX3N0cihpbikgcG9zdAoiYSIgbWtfY3BwX3N0cihiKSAiYyIK


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