This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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 translator/11504] Wrong location for inferred type conflict in error message


------- Additional Comments From chwang at redhat dot com  2010-05-14 19:16 -------
Created an attachment (id=4793)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4793&action=view)
Patch for 11504

Attempt #2. Very minor hack to keep an exp_type* vector that's updated whenever
the tokens vector is updated. This appears to fix the problem, though I don't
know if it is efficient enough.

Attempt #1 (not attached) was passing expression to
typeresolution_info::resolved, which failed because I couldn't get an
expression* from the Referrer/Referent templates in
elaborate.cxx:resolve_2types. 

I will try getting the exp_type from symbol* as well, if this patch is not
acceptable.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11504

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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