[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic ignored "-Wundef"

2013-11-16 Thread rainarchitect at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

--- Comment #4 from George Galeev  ---
Guys, how to get a look at this bug? I'm tired of reading 100500 warnings from
third-party libraries.

GCC-4.6, GCC-4.7, GCC-4.8, C++11
Gentoo Linux x86-64


[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic ignored "-Wundef"

2013-02-17 Thread rainarchitect at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431



George Galeev  changed:



   What|Removed |Added



 CC||rainarchitect at gmail dot

   ||com



--- Comment #1 from George Galeev  2013-02-17 
17:04:16 UTC ---

Same behavior, gcc-4.6.3, Linux gentoo x86-64


[Bug c++/53722] [C++0x] Returning implicit conversion class with deleted copy constructor

2012-06-19 Thread rainarchitect at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53722

--- Comment #1 from George Galeev  2012-06-19 
14:29:08 UTC ---
Work fine with real pointers and mutex locking in temp object Locker.


[Bug c++/53722] New: [C++0x] Returning implicit conversion class with deleted copy constructor

2012-06-19 Thread rainarchitect at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53722

 Bug #: 53722
   Summary: [C++0x] Returning implicit conversion class with
deleted copy constructor
Classification: Unclassified
   Product: gcc
   Version: 4.6.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: rainarchit...@gmail.com


struct Uncopyable {
public:
Uncopyable() {}
Uncopyable(const Uncopyable&) = delete;
};

struct Locker: public Uncopyable {

Locker(void*) {}

// declaration without a definition
//Locker(const Locker&);
};

struct SmartPtr {

// error: use of deleted function «Locker::Locker(const Locker&)»
Locker lock() { return 0; }
};

But if uncomment «Locker(const Locker&)» constructor declaration even without a
definition, this code compile and work fine.