Closed
Bug 1750610
Opened 3 years ago
Closed 3 years ago
Remove redundant template parameter from template class constructor
Categories
(Core :: JavaScript Engine, task, P5)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
99 Branch
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Constructor definition for template class doesn't need template parameter.
template <typename T>
class InlineForwardListIterator {
...
explicit InlineForwardListIterator<T>(const InlineForwardList<T>* owner)
template <>
class AbstractBindingIter<JSAtom> : public BaseAbstractBindingIter<JSAtom> {
...
explicit AbstractBindingIter<JSAtom>(Scope* scope);
explicit AbstractBindingIter<JSAtom>(JSScript* script);
c++17 allows such redundant parameter, but apparanetly c++20 disallows it
https://stackoverflow.com/questions/63513984/can-class-template-constructors-have-a-redundant-template-parameter-list-in-c2
and compiling the code with g++ with -std=c++20 throws the syntax error.
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•3 years ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/79ae152be505
Remove unnecessary template parameter from template class constructor declaration. r=nbp
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox99:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•