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: unassig...@gcc.gnu.org ReportedBy: liyaopen...@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!