public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97932] New: Preprocessor, generated error dumps most of the source file, not just one line.
@ 2020-11-21  8:27 lance.delahaye at gmail dot com
  2020-11-21  9:21 ` [Bug c/97932] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: lance.delahaye at gmail dot com @ 2020-11-21  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97932
           Summary: Preprocessor, generated error dumps most of the source
                    file, not just one line.
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lance.delahaye at gmail dot com
  Target Milestone: ---

Created attachment 49608
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49608&action=edit
Minimal source (too many comments maybe) but no #includes needed.

When error generated originating expanding #define, entire source between line
of  #define and the line invoking the macro is listed as error line. Can be
hundreds of lines, most of the source file.

Verified on 6.3 and 8.2, not tried most recent.

Attached source .c file, no #include dependancies.

To reproduce:

gcc -C _gcc_container_of_bug.c

gcc --version 
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.

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

end of thread, other threads:[~2023-07-07  9:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21  8:27 [Bug c/97932] New: Preprocessor, generated error dumps most of the source file, not just one line lance.delahaye at gmail dot com
2020-11-21  9:21 ` [Bug c/97932] " pinskia at gcc dot gnu.org
2020-11-21 10:19 ` lance.delahaye at gmail dot com
2020-11-21 10:26 ` lance.delahaye at gmail dot com
2020-11-21 14:34 ` [Bug c/97932] [8/9/10/11 Regression] Preprocessor, generated error dumps most of the source file, not just one line by r6-5941 hjl.tools at gmail dot com
2020-11-23  7:31 ` rguenth at gcc dot gnu.org
2021-02-03 13:07 ` jakub at gcc dot gnu.org
2021-02-03 14:21 ` dmalcolm at gcc dot gnu.org
2021-02-04 20:23 ` cvs-commit at gcc dot gnu.org
2021-02-04 20:30 ` [Bug c/97932] [8/9/10 " dmalcolm at gcc dot gnu.org
2021-05-14  9:54 ` [Bug c/97932] [9/10 " jakub at gcc dot gnu.org
2021-06-01  8:18 ` rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c/97932] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:42 ` jakub at gcc dot gnu.org
2023-07-07  9:13 ` rguenth 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).