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

Reply via email to