Closed
Bug 506271
Opened 17 years ago
Closed 15 years ago
Elsa complains "no argument supplied for template parameter" when forward-declaration of template omits default argument
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: neonblaze, Unassigned)
References
Details
Attachments
(1 file)
|
2.19 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 (CK-IBM) Firefox/3.0.11
Build Identifier:
Elsa doesn't parse the following:
template <class T> class A;
template <class T = int> class A {
public:
void foo();
};
A<> thisWorks; // with "-tr permissive" option
template <class T>
void A<T>::foo() { }
// error: no argument supplied for template parameter `T' of template `A<T>'
// error: there is no type called `A<>'
A<> thisDontWork;
GCC compiles this fine. Elsa will parse it if the forward declaration of A is removed or the default argument is given in the forward declaration instead of the definition.
Reproducible: Always
Steps to Reproduce:
1. Run "ccparse -tr permissive" on the code given above
Actual Results:
Parse error
Expected Results:
Successful parse
Comment 2•15 years ago
|
||
At this time, Mozilla is no longer pursuing the use of Elsa and Pork for static analysis and rewriting. Therefore, there are no longer any intentions to fix or support any outstanding bugs in these tools.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Updated•8 years ago
|
Product: Core → Firefox Build System
Updated•4 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•