public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails
@ 2007-02-22 10:06 enok at lysator dot liu dot se
2007-02-22 10:17 ` [Bug c++/30924] " enok at lysator dot liu dot se
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: enok at lysator dot liu dot se @ 2007-02-22 10:06 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
A quite simple array specialization construct is rejected by g++ with a
compiler error message. Not being a language specialist icc 9.1 accepts the
code even with -strict-ansi flag. Allegedly also comeau accepts the code. The
g++ compiler error message is also pretty strange and indicates a compiler bug.
template<typename T>
struct x {};
template<typename T, unsigned N>
struct x<T*[N]> {};
int main() {
x<int> a;
x<int*[10]> b;
return 0;
}
bash> g++-4.1.2 -c tst.cpp
tst.cpp:7: error: template parameters not used in partial
specialization: tst.cpp:7: error: T
--
Summary: Array of pointer type argument in partial template
specialization fails
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: enok at lysator dot liu dot se
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
@ 2007-02-22 10:17 ` enok at lysator dot liu dot se
2007-02-22 23:43 ` [Bug c++/30924] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: enok at lysator dot liu dot se @ 2007-02-22 10:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from enok at lysator dot liu dot se 2007-02-22 10:16 -------
I'm unable to create attachments, bugzilla crashes. I have reported the
bugzilla bug also to dberlin@gcc.gnu.org.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] [4.1/4.2/4.3 Regression] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
2007-02-22 10:17 ` [Bug c++/30924] " enok at lysator dot liu dot se
@ 2007-02-22 23:43 ` pinskia at gcc dot gnu dot org
2007-03-05 4:09 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-22 23:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-02-22 23:43 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Known to fail| |4.0.2 4.3.0
Known to work| |3.3.5
Last reconfirmed|0000-00-00 00:00:00 |2007-02-22 23:43:19
date| |
Summary|Array of pointer type |[4.1/4.2/4.3 Regression]
|argument in partial template|Array of pointer type
|specialization fails |argument in partial template
| |specialization fails
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] [4.1/4.2/4.3 Regression] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
2007-02-22 10:17 ` [Bug c++/30924] " enok at lysator dot liu dot se
2007-02-22 23:43 ` [Bug c++/30924] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-03-05 4:09 ` mmitchel at gcc dot gnu dot org
2007-03-10 0:03 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-03-05 4:09 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] [4.1/4.2/4.3 Regression] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
` (2 preceding siblings ...)
2007-03-05 4:09 ` mmitchel at gcc dot gnu dot org
@ 2007-03-10 0:03 ` mmitchel at gcc dot gnu dot org
2007-03-10 19:49 ` [Bug c++/30924] [4.1 " mmitchel at gcc dot gnu dot org
2008-07-04 16:02 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-03-10 0:03 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] [4.1 Regression] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
` (3 preceding siblings ...)
2007-03-10 0:03 ` mmitchel at gcc dot gnu dot org
@ 2007-03-10 19:49 ` mmitchel at gcc dot gnu dot org
2008-07-04 16:02 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-03-10 19:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2007-03-10 19:49 -------
Fixed in 4.2, 4.3.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3 Regression] |[4.1 Regression] Array of
|Array of pointer type |pointer type argument in
|argument in partial template|partial template
|specialization fails |specialization fails
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30924] [4.1 Regression] Array of pointer type argument in partial template specialization fails
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
` (4 preceding siblings ...)
2007-03-10 19:49 ` [Bug c++/30924] [4.1 " mmitchel at gcc dot gnu dot org
@ 2008-07-04 16:02 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 16:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2008-07-04 16:01 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.0.2 |4.0.2 4.1.3
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30924
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-04 16:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 10:06 [Bug c++/30924] New: Array of pointer type argument in partial template specialization fails enok at lysator dot liu dot se
2007-02-22 10:17 ` [Bug c++/30924] " enok at lysator dot liu dot se
2007-02-22 23:43 ` [Bug c++/30924] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org
2007-03-05 4:09 ` mmitchel at gcc dot gnu dot org
2007-03-10 0:03 ` mmitchel at gcc dot gnu dot org
2007-03-10 19:49 ` [Bug c++/30924] [4.1 " mmitchel at gcc dot gnu dot org
2008-07-04 16:02 ` jsm28 at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).