public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions
[not found] <bug-90508-4@http.gcc.gnu.org/bugzilla/>
@ 2023-04-03 2:35 ` pinskia at gcc dot gnu.org
2023-04-03 2:36 ` pinskia at gcc dot gnu.org
2023-04-03 2:38 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-03 2:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90508
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-04-03
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Reduced testcase:
```
template <class b> struct a {
virtual b g() { return 0; }
};
a<void> t;
```
Note at first this seemed like a regression but in GCC 7 and before, the line
for the first required at was pointing to the last line of the file, now it
points to the first virtual function in the class.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions
[not found] <bug-90508-4@http.gcc.gnu.org/bugzilla/>
2023-04-03 2:35 ` [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions pinskia at gcc dot gnu.org
@ 2023-04-03 2:36 ` pinskia at gcc dot gnu.org
2023-04-03 2:38 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-03 2:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90508
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zeratul976 at hotmail dot com
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 109382 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions
[not found] <bug-90508-4@http.gcc.gnu.org/bugzilla/>
2023-04-03 2:35 ` [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions pinskia at gcc dot gnu.org
2023-04-03 2:36 ` pinskia at gcc dot gnu.org
@ 2023-04-03 2:38 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-03 2:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90508
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the older gccs even get the line even more wrong, take:
```
template <class b> struct a {
int t;
virtual b g() { return 0; }
};
a<void> t;
int tt;
a<int> t1;
int tt1;
```
The error points to the line containing a<int> which has no relationship to
a<void> even.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-03 2:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-90508-4@http.gcc.gnu.org/bugzilla/>
2023-04-03 2:35 ` [Bug c++/90508] GCC does not produce full template backtraces when instantiating but not calling virtual functions pinskia at gcc dot gnu.org
2023-04-03 2:36 ` pinskia at gcc dot gnu.org
2023-04-03 2:38 ` 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).