public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* Alternative to __FILE__/__LINE__
@ 2018-03-04 20:18 François Dumont
  2018-03-04 20:55 ` Marc Glisse
  0 siblings, 1 reply; 5+ messages in thread
From: François Dumont @ 2018-03-04 20:18 UTC (permalink / raw)
  To: libstdc++

Hi

     Debug mode is using __FILE__/__LINE__ to show where the assertion 
took place. So assertion looks like this:

/home/fdt/dev/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/deque:175:
Error: function requires a valid iterator range [__first, __last).

     But IMHO a smarter information would be to provide the file:line in 
the source code that generated this assertion so that users could more 
easily go to the faulty code.

     So I am looking for __FILE__/__LINE__ equivalents pointing to the 
first non-system source file. Has any such request already be made ? Do 
you think it would worth a request to gcc guys ?

François


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

end of thread, other threads:[~2018-03-18 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-04 20:18 Alternative to __FILE__/__LINE__ François Dumont
2018-03-04 20:55 ` Marc Glisse
2018-03-04 21:30   ` Petr Ovtchenkov
2018-03-05  6:19     ` François Dumont
2018-03-18 17:04   ` François Dumont

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