public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend
@ 2006-08-24 0:53 proppy at aminche dot com
2006-08-24 1:00 ` [Bug c++/28827] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: proppy at aminche dot com @ 2006-08-24 0:53 UTC (permalink / raw)
To: gcc-bugs
template<typename T>
struct Base : T
{
typedef T Derived;
};
struct A
{
template<typename T>
friend struct Base<T>::Derived::Crash;
// nested.cpp:10: internal compiler error: in lookup_member, at
cp/search.c:1213
// ICE with g++-4.0.3
// PASS with g++-3.4.6
};
--
Summary: [4.0.3 regression] ICE with nested template friend
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: proppy at aminche dot com
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28827] [4.0 Regression] ICE with nested template friend
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
@ 2006-08-24 1:00 ` pinskia at gcc dot gnu dot org
2006-08-24 2:22 ` proppy at aminche dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-24 1:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-24 01:00 -------
4.2.0 rejects the code:
t.cc:10: error: 'Crash' is not a member of 'T'
This code is invalid.
3.3 gave:
t.cc:10: error: typename type `typename Base<T>::Derived::Crash' declared
`friend'
ICC gives:
t.cc(10): error: a qualified friend template declaration must refer to a
specific previously declared template
friend struct Base<T>::Derived::Crash;
^
compilation aborted for t.cc (code 2)
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Keywords| |ice-on-invalid-code
Known to fail| |3.0.4 4.0.0
Summary|[4.0.3 regression] ICE with |[4.0 Regression] ICE with
|nested template friend |nested template friend
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28827] [4.0 Regression] ICE with nested template friend
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
2006-08-24 1:00 ` [Bug c++/28827] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2006-08-24 2:22 ` proppy at aminche dot com
2006-08-24 3:41 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: proppy at aminche dot com @ 2006-08-24 2:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from proppy at aminche dot com 2006-08-24 02:22 -------
(In reply to comment #1)
> 4.2.0 rejects the code:
> t.cc:10: error: 'Crash' is not a member of 'T'
>
nested.cpp:10: internal compiler error: in lookup_member, at cp/search.c:1212
on g++-4.2 version 4.2.0 20060709 (experimental) (Debian 4.2-20060709-1)
which g++-4.2 revision are you using to get ?:
t.cc:10: error: 'Crash' is not a member of 'T'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28827] [4.0 Regression] ICE with nested template friend
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
2006-08-24 1:00 ` [Bug c++/28827] [4.0 Regression] " pinskia at gcc dot gnu dot org
2006-08-24 2:22 ` proppy at aminche dot com
@ 2006-08-24 3:41 ` pinskia at gcc dot gnu dot org
2006-09-10 17:01 ` jsm28 at gcc dot gnu dot org
2006-10-12 1:47 ` bangerth at dealii dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-24 3:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-24 03:41 -------
(In reply to comment #2)
> which g++-4.2 revision are you using to get ?:
4.2.0 20060821 aka two days ago's. I bet it was also fixed by 28304.
You are using a month's old 4.2 compiler which is why you don't see the fix.
If you are going to try the mainline, please try with at a max a week old
compiler.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28827] [4.0 Regression] ICE with nested template friend
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
` (2 preceding siblings ...)
2006-08-24 3:41 ` pinskia at gcc dot gnu dot org
@ 2006-09-10 17:01 ` jsm28 at gcc dot gnu dot org
2006-10-12 1:47 ` bangerth at dealii dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-09-10 17:01 UTC (permalink / raw)
To: gcc-bugs
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28827] [4.0 Regression] ICE with nested template friend
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
` (3 preceding siblings ...)
2006-09-10 17:01 ` jsm28 at gcc dot gnu dot org
@ 2006-10-12 1:47 ` bangerth at dealii dot org
4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2006-10-12 1:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from bangerth at dealii dot org 2006-10-12 01:47 -------
I can confirm that this is apparently fixed now.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28827
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-12 1:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24 0:53 [Bug c++/28827] New: [4.0.3 regression] ICE with nested template friend proppy at aminche dot com
2006-08-24 1:00 ` [Bug c++/28827] [4.0 Regression] " pinskia at gcc dot gnu dot org
2006-08-24 2:22 ` proppy at aminche dot com
2006-08-24 3:41 ` pinskia at gcc dot gnu dot org
2006-09-10 17:01 ` jsm28 at gcc dot gnu dot org
2006-10-12 1:47 ` bangerth at dealii 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).