public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46587] New: ICE when instantiating template member function in another template member
@ 2010-11-21 11:41 crexfexpex at yandex dot ru
  2010-11-26  7:43 ` [Bug c++/46587] " crexfexpex at yandex dot ru
  2011-09-26 23:33 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: crexfexpex at yandex dot ru @ 2010-11-21 11:41 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE when instantiating template member function in
                    another template member
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: crexfexpex@yandex.ru


$ cat >test.cc
struct x {
    template <typename T> void op1(void) { &x::op2<T>; }
    template <typename T> void op2(void) {}
};

int main(void) {
    x().op1<int>();
    return 0;
}

$ g++ -Wall test.cc
test.cc: In member function 'void x::op1() [with T = int]':
test.cc:7:18:   instantiated from here
test.cc:2:44: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr
--enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-gnu-unique-object --enable-lto --enable-plugin --disable-multilib
--disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
Thread model: posix
gcc version 4.5.1 (GCC)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/46587] ICE when instantiating template member function in another template member
  2010-11-21 11:41 [Bug c++/46587] New: ICE when instantiating template member function in another template member crexfexpex at yandex dot ru
@ 2010-11-26  7:43 ` crexfexpex at yandex dot ru
  2011-09-26 23:33 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: crexfexpex at yandex dot ru @ 2010-11-26  7:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Alexey Voinov <crexfexpex at yandex dot ru> 2010-11-26 05:50:07 UTC ---
Tested it with "gcc version 4.6.0 20101106 (experimental) (GCC)". The bug is
still there.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/46587] ICE when instantiating template member function in another template member
  2010-11-21 11:41 [Bug c++/46587] New: ICE when instantiating template member function in another template member crexfexpex at yandex dot ru
  2010-11-26  7:43 ` [Bug c++/46587] " crexfexpex at yandex dot ru
@ 2011-09-26 23:33 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-26 23:33 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.6.0, 4.6.1, 4.7.0
         Resolution|                            |WORKSFORME

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-26 22:46:31 UTC ---
Closing as works for me.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-26 22:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-21 11:41 [Bug c++/46587] New: ICE when instantiating template member function in another template member crexfexpex at yandex dot ru
2010-11-26  7:43 ` [Bug c++/46587] " crexfexpex at yandex dot ru
2011-09-26 23:33 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).