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++/14679] [3.4? Regression] g++ (3.4.0 20040317 (prerelease) ) failes to compile valid code (ICE)


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-03-22 22:52 -------
The problem could be reproduced with the following code snippet:

==================================
struct A
{
    A(int);
};

template <int> void foo()
{
    A a=A(0);
}

void bar()
{
    foo<0>();
}
==================================

The bug was fixed with Giovanni's patch for PR 14545

http://gcc.gnu.org/ml/gcc-cvs/2004-03/msg00881.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.4.1                       |3.4.0


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


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