[Bug c++/53018] New: problem with c++0x
liyaopeng.0 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 17 12:26:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53018
Bug #: 53018
Summary: problem with c++0x
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: liyaopeng.0@gmail.com
If I use the command g++ with -std=c++0x,it will report strange errors.For
example it report a member-function does not match any in class but I surely
declare the all the same member-function,and the message of position of the
member-function in the declaration of the class is wrong! It reports that "ISO
C++ forbids comparison between pointer and integer [-fpermissive]" when I put
an integer and an element of an array with type int at each of the end of ==
.And it reports " invalid conversion from ‘int’ to ‘thinker::Regulation*’
[-fpermissive]" when I put an integer and an element of an array with type int
at each end of = . But if without tht option -std=c++0x, all the problem
described above are absent.Thanks!
More information about the Gcc-bugs
mailing list