This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8783: Macros in #include directive not expanded correctly
- From: struppi at acm dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 Dec 2002 12:15:01 -0000
- Subject: c++/8783: Macros in #include directive not expanded correctly
- Reply-to: struppi at acm dot org
>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