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: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Dec 2011 07:28:59 +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 #7 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-17 07:28:59 UTC ---
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 } "
[1] http://gcc.gnu.org/ml/gcc-testresults/2011-12/msg01771.html