This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52683] New: assignment operator not detected
- From: "abominable-snowman at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Mar 2012 07:36:04 +0000
- Subject: [Bug c++/52683] New: assignment operator not detected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
Bug #: 52683
Summary: assignment operator not detected
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: abominable-snowman@yandex.ru
Assignment operator not detected via declval<>() for POD types.
Testcase in attach. It work as expected for gcc 4.5.2, but not work for gcc
4.6.3:
$ x86_64-unknown-linux-gnu-gcc-4.5.2 -c -std=gnu++0x test.cc
$ c++ -c -std=gnu++0x test.cc
test.cc: In function 'void f()':
test.cc:71:3: error: static assertion failed: "not assignable"
test.cc:77:3: error: static assertion failed: "not assignable"
$ c++ --version
c++ (GCC) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.