http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55058



Sebastian Huber <sebastian.hu...@embedded-brains.de> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |jason at gcc dot gnu.org



--- Comment #6 from Sebastian Huber <sebastian.hu...@embedded-brains.de> 
2012-10-30 09:18:03 UTC ---

If I revert parts of commit 44f861fca343148a1b0720105ec2b7f14bbcc849



diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c

index 1ff1c73..8f5b9f7 100644

--- a/gcc/cp/pt.c

+++ b/gcc/cp/pt.c

@@ -11015,9 +11015,7 @@ tsubst (tree t, tree args, tsubst_flags_t complain,

tree in_decl)

             complain | tf_ignore_bad_quals);

          return r;

        }

-      else

-       /* We don't have an instantiation yet, so drop the typedef.  */

-       t = DECL_ORIGINAL_TYPE (decl);

+      /* Else we must be instantiating the typedef, so fall through.  */

     }



   if (type



mentioned in



http://gcc.gnu.org/ml/gcc/2012-10/msg00399.html



then, the test case compiles well.

Reply via email to