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++/10926] New: A destructor may not be a template:Internal compiler error in build_delete, at cp/init.c:3192


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: A destructor may not be a template:Internal compiler
                    error in build_delete, at cp/init.c:3192
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: xueweizhong@mail.zte.com.cn
                CC: gcc-bugs@gcc.gnu.org

struct Foo
{
    template <int i>
    ~Foo() {}
};

int main()
{
   Foo f;
}
~
gcc version 3.2.3:
gcc -c test.cpp:
test.cpp: In function `int main()':
test.cpp:9: Internal compiler error in build_delete, at cp/init.c:3192
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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