WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28069
Add inline to help winscw compiler resolve specialized argument in templated functions.
https://bugs.webkit.org/show_bug.cgi?id=28069
Summary
Add inline to help winscw compiler resolve specialized argument in templated ...
Yongjun Zhang
Reported
2009-08-07 08:15:51 PDT
Wiscw compiler cannot resolve template argument "mode" from the following code: ---------------------------------------------------- template <int mode> void test_function() { int m = mode; // it complains mode is not defined } ---------------------------------------------------- If we inline this function, the compiler won't report the error.
Attachments
Add inline to help winscw compiler resolve specialized argument in templated functions.
(1.38 KB, patch)
2009-08-07 09:03 PDT
,
Yongjun Zhang
eric
: review-
Details
Formatted Diff
Diff
Modified patch as per Eric's comments.
(1.45 KB, patch)
2009-08-07 10:46 PDT
,
Yongjun Zhang
eric
: commit-queue+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yongjun Zhang
Comment 1
2009-08-07 09:03:07 PDT
Created
attachment 34281
[details]
Add inline to help winscw compiler resolve specialized argument in templated functions. The inline is only enabled for winscw compiler; for other compilers, it will be disabled to avoid increasing the binary size.
Eric Seidel (no email)
Comment 2
2009-08-07 09:04:57 PDT
Comment on
attachment 34281
[details]
Add inline to help winscw compiler resolve specialized argument in templated functions. I don't see why this can't be inline for all compilers. "inline" is a hint anyway. Compilers can (and will) ignore it.
Eric Seidel (no email)
Comment 3
2009-08-07 09:05:37 PDT
you could add a comment about how "inline" is required there to help the winscw compiler if you like.
Yongjun Zhang
Comment 4
2009-08-07 10:46:18 PDT
Created
attachment 34292
[details]
Modified patch as per Eric's comments. Thanks for the quick review. The new patch removes winscw compiler specific flag.
Eric Seidel (no email)
Comment 5
2009-08-07 10:49:35 PDT
Comment on
attachment 34292
[details]
Modified patch as per Eric's comments. LGTM.
Adam Barth
Comment 6
2009-08-07 13:15:50 PDT
Comment on
attachment 34292
[details]
Modified patch as per Eric's comments. Clearing review flag on attachment: 34292 Committing to
http://svn.webkit.org/repository/webkit/trunk
... M JavaScriptCore/ChangeLog M JavaScriptCore/runtime/LiteralParser.cpp Committed
r46910
M LayoutTests/platform/mac/Skipped M LayoutTests/platform/win/Skipped M LayoutTests/ChangeLog
r46909
= b66fe77cc3bbc2d501a8b5d5a3fc7dd3d62d7df0 (trunk) M JavaScriptCore/runtime/LiteralParser.cpp M JavaScriptCore/ChangeLog
r46910
= 0fc235ef070baf8ffb224dc034ba71c824933021 (trunk) First, rewinding head to replay your work on top of it... Nothing to do.
http://trac.webkit.org/changeset/46910
Adam Barth
Comment 7
2009-08-07 13:15:55 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug