This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37590] g++ should emit different debug info for variable's type
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2008 15:19:19 -0000
- Subject: [Bug c++/37590] g++ should emit different debug info for variable's type
- References: <bug-37590-360@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from tromey at gcc dot gnu dot org 2008-09-22 15:19 -------
No, I think we have to record what the user actually wrote.
For instance, consider:
#include <string>
using namespace std;
std::string x1;
string x2;
If we record the fully qualified name, we can't distinguish these two cases.
I would prefer a solution not relying on heuristics in the debugger.
(And can we even "undo" using directives this way correctly? I am not sure.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37590