This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51406] [4.5/4.6/4.7 Regression][c++0x] Incorrect result of static_cast to rvalue reference to base class.
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Dec 2011 11:31:33 +0000
- Subject: [Bug c++/51406] [4.5/4.6/4.7 Regression][c++0x] Incorrect result of static_cast to rvalue reference to base class.
- Auto-submitted: auto-generated
- References: <bug-51406-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51406
--- Comment #8 from Mikael Pettersson <mikpe at it dot uu.se> 2011-12-17 11:31:33 UTC ---
(In reply to comment #7)
> The testcases use "target c++11" target selector. This selector is not known
> on 4.6 and earler branches. The testcases fail as following on 4.6 branch [1]:
>
> Running target unix
> ERROR: g++.dg/cpp0x/rv-cast3.C: syntax error in target selector "target c++11"
> for " dg-do 2 run { target c++11 } "
> UNRESOLVED: g++.dg/cpp0x/rv-cast3.C: syntax error in target selector "target
> c++11" for " dg-do 2 run { target c++11 } "
> ERROR: g++.dg/cpp0x/rv-cast4.C: syntax error in target selector "target c++11"
> for " dg-do 2 compile { target c++11 } "
> UNRESOLVED: g++.dg/cpp0x/rv-cast4.C: syntax error in target selector "target
> c++11" for " dg-do 2 compile { target c++11 } "
I see the exact same failures with 4.5 branch on all targets I'm testing.