This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55058] [4.7/4.8 Regression] Unexpected invalid type conversion error
- From: "sebastian dot huber at embedded-brains dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Oct 2012 09:18:03 +0000
- Subject: [Bug c++/55058] [4.7/4.8 Regression] Unexpected invalid type conversion error
- Auto-submitted: auto-generated
- References: <bug-55058-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55058
Sebastian Huber <sebastian.huber@embedded-brains.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #6 from Sebastian Huber <sebastian.huber@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.