public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54929] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349
@ 2012-10-14 23:50 cas43 at cs dot stanford.edu
  2012-10-15  7:52 ` [Bug c++/54929] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: cas43 at cs dot stanford.edu @ 2012-10-14 23:50 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54929
           Summary: internal compiler error: in tsubst_copy, at
                    cp/pt.c:12349
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: cas43@cs.stanford.edu


Input:

template<class T> class A {void F(){sizeof(double);}};
template class A<int>;


Expected result: compile successfully.

Output:

prog.cpp: In instantiation of ‘void A<T>::F() [with T = int]’:
prog.cpp:2:16:   required from here
prog.cpp:1:43: internal compiler error: in tsubst_copy, at cp/pt.c:12349
 template<class T> class A {void F(){sizeof(double);}};
                                           ^
0x5835ca tsubst_copy
    ../../s-4.8/gcc/cp/pt.c:12349
0x57364e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../s-4.8/gcc/cp/pt.c:13476
0x573543 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    ../../s-4.8/gcc/cp/pt.c:13501
0x57aeba tsubst_expr
    ../../s-4.8/gcc/cp/pt.c:13156
0x57c8c8 tsubst_expr
    ../../s-4.8/gcc/cp/pt.c:12641
0x57c465 tsubst_expr
    ../../s-4.8/gcc/cp/pt.c:12811
0x579d86 instantiate_decl(tree_node*, int, bool)
    ../../s-4.8/gcc/cp/pt.c:18633
0x5b43a3 instantiate_pending_templates(int)
    ../../s-4.8/gcc/cp/pt.c:18732
0x5efc00 cp_write_global_declarations()
    ../../s-4.8/gcc/cp/decl2.c:3993
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


Output from g++ -v:
Using built-in specs.
COLLECT_GCC=/new-gcc/i-4.8/bin/g++
COLLECT_LTO_WRAPPER=/new-gcc/i-4.8/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../s-4.8/configure --prefix=/new-gcc/i-4.8
Thread model: posix
gcc version 4.8.0 20121014 (experimental) (GCC) 


Sorry if this bugs gets duplicated; I cannot find the original.


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

* [Bug c++/54929] internal compiler error: in tsubst_copy, at cp/pt.c:12349
  2012-10-14 23:50 [Bug c++/54929] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349 cas43 at cs dot stanford.edu
@ 2012-10-15  7:52 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-15  7:52 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-15 07:52:11 UTC ---
Dup

*** This bug has been marked as a duplicate of bug 54927 ***


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

end of thread, other threads:[~2012-10-15  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-14 23:50 [Bug c++/54929] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349 cas43 at cs dot stanford.edu
2012-10-15  7:52 ` [Bug c++/54929] " 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).