This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37590] g++ should emit different debug info for variable's type



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]