This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52683] New: assignment operator not detected


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]