Bug 193114 - confusing error message (static template member initialization)
Summary: confusing error message (static template member initialization)
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-25 12:08 UTC by Neal Becker
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-30 09:02:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.