public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/58468] New: Macro gets undefined when source directory is same as macro name.
@ 2013-09-18 20:58 ateuscher at datacomm dot ch
  2013-09-23 10:10 ` [Bug preprocessor/58468] " ateuscher at datacomm dot ch
  2021-08-26  1:04 ` [Bug driver/58468] " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ateuscher at datacomm dot ch @ 2013-09-18 20:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58468

            Bug ID: 58468
           Summary: Macro gets undefined when source directory is same as
                    macro name.
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ateuscher at datacomm dot ch

Content of file src/test.c:

#ifndef SRC
# error SRC not defined!
#endif

When precompiled from base directory:

cpp -P -DSRC src/test.c

src/test.c:3:3: error: #error SRC not defined!
 # error SRC not defined!
   ^

There seems to be conflict problem with the macro SRC and the directory src.

Tested with MinGW under Windows 7.

Older versions doesn't have that problem.


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

* [Bug preprocessor/58468] Macro gets undefined when source directory is same as macro name.
  2013-09-18 20:58 [Bug preprocessor/58468] New: Macro gets undefined when source directory is same as macro name ateuscher at datacomm dot ch
@ 2013-09-23 10:10 ` ateuscher at datacomm dot ch
  2021-08-26  1:04 ` [Bug driver/58468] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ateuscher at datacomm dot ch @ 2013-09-23 10:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58468

Adrian <ateuscher at datacomm dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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

* [Bug driver/58468] Macro gets undefined when source directory is same as macro name.
  2013-09-18 20:58 [Bug preprocessor/58468] New: Macro gets undefined when source directory is same as macro name ateuscher at datacomm dot ch
  2013-09-23 10:10 ` [Bug preprocessor/58468] " ateuscher at datacomm dot ch
@ 2021-08-26  1:04 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-26  1:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58468

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|preprocessor                |driver

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, did the driver accidently convert SRC to src when dealing case insensitive
windows.

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

end of thread, other threads:[~2021-08-26  1:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18 20:58 [Bug preprocessor/58468] New: Macro gets undefined when source directory is same as macro name ateuscher at datacomm dot ch
2013-09-23 10:10 ` [Bug preprocessor/58468] " ateuscher at datacomm dot ch
2021-08-26  1:04 ` [Bug driver/58468] " pinskia at gcc dot gnu.org

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).