public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51925] New: [4.7 Regression] ICE in tsubst
@ 2012-01-21 0:05 jakub at gcc dot gnu.org
2012-01-21 0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-21 0:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
Bug #: 51925
Summary: [4.7 Regression] ICE in tsubst
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jakub@gcc.gnu.org
CC: jason@gcc.gnu.org
class A
{
};
class B;
struct C
{
C *c1 ();
int c2 (const A &);
B *c3;
};
class D;
class B
{
friend class C;
D *b;
};
struct E
{
A e ();
};
template <int, typename T>
struct F
{
typedef T f;
};
template <typename T1 = void>
struct G : public E
{
template <int Index>
struct Select : F <Index, T1>
{
};
using E::e;
template <int Index>
typename Select <Index>::f e () {}
operator typename Select <0>::f () { e <0> (); }
};
struct D
{
G <A> d (A) {}
};
int
C::c2 (const A &x)
{
A a = c1 ()->c3->b->d (x);
}
ICEs starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183304
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51925] [4.7 Regression] ICE in tsubst
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
@ 2012-01-21 0:31 ` jakub at gcc dot gnu.org
2012-01-21 5:46 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-21 0:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Known to work| |4.6.3
Target Milestone|--- |4.7.0
Known to fail| |4.7.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51925] [4.7 Regression] ICE in tsubst
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
2012-01-21 0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
@ 2012-01-21 5:46 ` pinskia at gcc dot gnu.org
2012-01-23 5:27 ` [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-21 5:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-21
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-21 03:12:00 UTC ---
Further reduced (no need for the operator T1 or really most of the other
classes):
struct E
{
int e ();
};
template <typename T1>
struct G : public E
{
using E::e;
template <int> void e ();
void f () { e <0> (); }
};
int f(void)
{
G<int> a;
a.f();
}
--- CUT ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
2012-01-21 0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
2012-01-21 5:46 ` pinskia at gcc dot gnu.org
@ 2012-01-23 5:27 ` jason at gcc dot gnu.org
2012-01-23 17:01 ` jason at gcc dot gnu.org
2012-01-23 17:07 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-23 5:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2012-01-23 5:27 ` [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function jason at gcc dot gnu.org
@ 2012-01-23 17:01 ` jason at gcc dot gnu.org
2012-01-23 17:07 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-23 17:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-23 16:35:44 UTC ---
Author: jason
Date: Mon Jan 23 16:35:31 2012
New Revision: 183438
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183438
Log:
PR c++/51925
* class.c (add_method): Set OVL_USED for using-decls.
* tree.c (ovl_scope): New.
* cp-tree.h: Declare it.
* parser.c (cp_parser_template_name): Use it.
* semantics.c (baselink_for_fns): Likewise.
* name-lookup.c (set_inherited_value_binding_p): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/using20.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/template-id-2.C
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
` (3 preceding siblings ...)
2012-01-23 17:01 ` jason at gcc dot gnu.org
@ 2012-01-23 17:07 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-23 17:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-23 17:00:23 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-23 17:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21 0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
2012-01-21 0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
2012-01-21 5:46 ` pinskia at gcc dot gnu.org
2012-01-23 5:27 ` [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function jason at gcc dot gnu.org
2012-01-23 17:01 ` jason at gcc dot gnu.org
2012-01-23 17:07 ` jason at gcc dot gnu.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).