Closed
Bug 880492
Opened 11 years ago
Closed 11 years ago
use GCC's typeof when decltype is not available
Categories
(Core :: MFBT, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: karlt, Assigned: karlt)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
664 bytes,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
decltype can be useful, but is not available when compiling with gcc 4.4. typeof sounds very similar: "A `typeof'-construct can be used anywhere a typedef name could be used. For example, you can use it in a declaration, in a cast, or inside of `sizeof' or `typeof'." "If you are writing a header file that must work when included in ISO C programs, write `__typeof__' instead of `typeof'."
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #759470 -
Flags: review?(jwalden+bmo)
Comment 2•11 years ago
|
||
Comment on attachment 759470 [details] [diff] [review] patch Review of attachment 759470 [details] [diff] [review]: ----------------------------------------------------------------- If bug 810274 comment 18 is correct that we might be able to reconsider decltype in Firefox 25, this is gonna have a short lifetime, but that's probably not a bad thing.
Attachment #759470 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/03b0f599a003
Flags: in-testsuite-
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/03b0f599a003
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•