[Bug c++/105672] Print note when unable to convert between types with the same name but different scopes

2022-05-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105672 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > :: note: tuple and std::tuple are not the same type And just to be clear, it was very intentional that this suggestion *doesn't* show the template argument

[Bug c++/105672] Print note when unable to convert between types with the same name but different scopes

2022-05-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105672 --- Comment #4 from Jonathan Wakely --- (In reply to Barry Revzin from comment #2) > And drop the "non-scalar type" part - does it add anything meaningful to the > diagnostic? Good point. I assume the intention of that wording is to say "I

[Bug c++/105672] Print note when unable to convert between types with the same name but different scopes

2022-05-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105672 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > Could we add a note for ill-formed conversions between two types that have > the same name, to make it more obvious that they're defined in different >

[Bug c++/105672] Print note when unable to convert between types with the same name but different scopes

2022-05-20 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105672 Barry Revzin changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug c++/105672] Print note when unable to convert between types with the same name but different scopes

2022-05-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105672 --- Comment #1 from Jonathan Wakely --- Another option suggested by Barry Revzin is to line up the types, so that the type's name is in the same column so the different nested-name-qualifier is more obvious: vt.C:276:15: error: conversion from