public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8783: Macros in #include directive not expanded correctly
@ 2002-12-02  4:16 struppi
  0 siblings, 0 replies; 2+ messages in thread
From: struppi @ 2002-12-02  4:16 UTC (permalink / raw)
  To: gcc-gnats


>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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/8783: Macros in #include directive not expanded correctly
@ 2002-12-02  4:30 neil
  0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2002-12-02  4:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, struppi

Synopsis: Macros in #include directive not expanded correctly

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon Dec  2 04:30:13 2002
State-Changed-Why:
    Not a bug.  String literal concatenation happens after preprocessing, and therefore after directives have been handled.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8783


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-02 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-02  4:16 c++/8783: Macros in #include directive not expanded correctly struppi
2002-12-02  4:30 neil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).