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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: neonblaze, Unassigned)

References

Details

Attachments

(1 file)

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
Attached patch Proposed fix — — Splinter Review
Hi, this patch seems to fix the problem.
Blocks: 438061
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
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: