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++/56558] New: Address of operator with template base class member (C++ source compile error)


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

             Bug #: 56558
           Summary: Address of operator with template base class member
                    (C++ source compile error)
    Classification: Unclassified
           Product: gcc
           Version: 4.6.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thierry.moreau@connotech.com


Created attachment 29606
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29606
C++ source code (minimal)

The C++ source file attached is minimal and causes a compiler error with 4.2
and 4.6 (latest snapshot), but neither 4.7 (except a 4.7.0 RC) nor 4.8.

In member function 'void t2<SIZE>::f() [with int SIZE = 1000]':
error: cannot convert 'int t1<1000>::*' to 'int*' in initialization


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