Bug 193114

Summary: confusing error message (static template member initialization)
Product: [Fedora] Fedora Reporter: Neal Becker <ndbecker2>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-30 09:02:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neal Becker 2006-05-25 12:08:50 UTC
Description of problem:

template<typename T>
struct A {
  static const int map[4];
};

//template<>
const int A<int>::map[4] = {0,1,2,3};

Produces this confusing message:
error: too few template-parameter-lists

Version-Release number of selected component (if applicable):


How reproducible:

every time
Steps to Reproduce:
1. compile above
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jakub Jelinek 2006-05-29 10:46:55 UTC
Can you explain why do you think it is confusing and what else would you like
to see for an error message instead?
template-parameter-list is ISO C++ 98 standard term, see [temp]/1.