This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/13206] support gcc's typeof
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 22 Feb 2012 15:36:58 +0000
- Subject: [Bug exp/13206] support gcc's typeof
- Auto-submitted: auto-generated
- References: <bug-13206-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13206
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-02-22 15:36:58 UTC ---
One wrinkle is that there's no way to tell if the source
was compiled with GNU extensions. So, we can't simply parse
"typeof" as a token. And, even the heuristic of looking up
a symbol named "typeof" may fail if different source files
were compiled with different options.
__typeof__ seems reasonably easy, though there is the question
of whether we'd want a new OP_TYPEOF. If not, it simplifies
parsing, but you could have sizeof($x) != sizeof(typeof($x))
if $x changes between parsing and evaluation.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.