Watch, Follow, &
Connect with Us
Public Report
Report From: Kylix/Compiler/C++/Front-end/Language/Templates    [ Add a report in this area ]  
Report #:  92137   Status: Closed
(Pulled) Invalid template syntax gets an internal compiler error:

template<int>struct AA{int I;};
template<template<>>;
AA<2>
Project:  Kylix Build #:  5.6
Version:    1.0 Submitted By:   QC<->Raid Replicator Account
Report Type:  Crash / Data loss / Total failure Date Reported:  5/8/2001 12:00:00 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    RedHat Linux Internal Tracking #:   110959
Resolution: Deferred to Next Rel (Resolution Comments) Resolved in Build: : 1.0
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Invalid template syntax gets an internal compiler error:

template<int>struct AA{int I;};
template<template<>>;
AA<2> aa;
m(sizeof(int)+sizeof(AA<2));
Steps to Reproduce:
bcc -c 110959.cpp
//res:
Error E2401 110959.cpp 2: Invalid template argument list
Error E2434 110959.cpp 2: Template declaration missing template parameters ('tem
plate<...>')
Error E2438 110959.cpp 3: Template template arguments must name a class
Error E2238 110959.cpp 3: Multiple declaration for 'AA<2>'
Error E2344 110959.cpp 3: Earlier declaration of 'AA<2>'
Error E2270 110959.cpp 3: > expected
Error E2428 110959.cpp 3: Templates must be classes or functions
Error E2303 110959.cpp 4: Type name expected
Fatal F1004 110959.cpp 4: Internal compiler error  at 0x80d3992
Workarounds
None
Attachment
N
Comments

None

Server Response from: ETNACODE01