[Bug preprocessor/61386] inaccurate location for missing headers

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
   Target Milestone|--- |7.0

--- Comment #5 from Andrew Pinski  ---
Fixed by r7-1651.

[Bug preprocessor/61386] inaccurate location for missing headers

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386

Andrew Pinski  changed:

   What|Removed |Added

  Known to work||7.1.0
  Known to fail||4.9.0

--- Comment #4 from Andrew Pinski  ---
GCC 7 produces:
:1:11: fatal error: stexcept: No such file or directory
  #include 
   ^~

[Bug preprocessor/61386] inaccurate location for missing headers

2014-10-06 Thread akim.demaille at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386

--- Comment #2 from Akim Demaille akim.demaille at gmail dot com ---
Well, I never hacked in GCC.  I can try, time permitting...


[Bug preprocessor/61386] inaccurate location for missing headers

2014-10-06 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386

--- Comment #3 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(In reply to Akim Demaille from comment #2)
 Well, I never hacked in GCC.  I can try, time permitting...

Never too late to try. This one should be easy if you know how to use a
debugger. Just add a breakpoint in c_cpp_error, then go up in the backtrace
until you find a place where the correct location is known (in libcpp,
location_t is called source_location but they are the same thing), pass that
location to c_cpp_error.

You can use expand_location(location) to see what locations point to.

No hurries. You have all the time in the world :)

[Bug preprocessor/61386] inaccurate location for missing headers

2014-10-05 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386

Manuel López-Ibáñez manu at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||diagnostic
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-10-05
 CC||manu at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
Sure, could you provide a patch? Or at least investigate what needs to be
changed?