This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 exp/13206] support gcc's typeof


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.


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