[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-03-26 Thread dodji at gcc dot gnu dot org


--- Comment #20 from dodji at gcc dot gnu dot org  2010-03-26 09:31 ---
Should be fixed in 4.5 by the commit for PR c++/43206.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-03-16 Thread dodji at gcc dot gnu dot org


--- Comment #19 from dodji at gcc dot gnu dot org  2010-03-16 10:55 ---
FWIW, I have tested the patch posted for PR c++/43206 and it fixes this one
too.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-03-05 Thread dodji at gcc dot gnu dot org


--- Comment #18 from dodji at gcc dot gnu dot org  2010-03-05 20:44 ---
(In reply to comment #13)
 It may be a different issue since the original testcase
 compiles with older gcc.

How about this reduced test case that compiles with older (4.4) gcc:

templateclass A struct NumericTraits{ typedef A TInputImage;};
templateclass B class CovariantVector{};
templateclass C struct Image{ typedef C PixelType;};
templateclass H, class E, class D
class F {
  typedef H G;
  typedef
  typename NumericTraitstypename G::PixelType::RealType
  InputRealType;
};

templatetypename TInputImage,
 typename TOutputImage=ImageCovariantVectortypename
NumericTraitstypename TInputImage::PixelType::TInputImage  
class XXX{};

XXXImagefloat  x;


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-03-03 Thread manu at gcc dot gnu dot org


--- Comment #17 from manu at gcc dot gnu dot org  2010-03-03 14:40 ---
(In reply to comment #13)
 It may be a different issue since the original testcase
 compiles with older gcc.

It is much tougher to get a testcase that compiled before but I managed to get
344K. Delta is still running so it would be better to focus on the other PR for
now. 


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread manu at gcc dot gnu dot org


--- Comment #8 from manu at gcc dot gnu dot org  2010-02-27 17:44 ---
(In reply to comment #7)
 Created an attachment (id=19963)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19963action=view) [edit]
 Reduced test case
 
 This is a somewhat reduced test case that is still way bigger than what I'd
 like, but still better than nothing.

Hi, I have reduced the testcase in around half of its size and delta is still
running. Once it is finished, I will upload it.


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu dot org


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread dodji at redhat dot com


--- Comment #9 from dodji at gcc dot gnu dot org  2010-02-27 21:14 ---
Subject: Re:  [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

 Hi, I have reduced the testcase in around half of its size and delta 
 is still running. Once it is finished, I will upload it.

You mean half of the size of the reduced testcase I did attach?  That's 
interesting as delta was claiming it couldn't reduce it further for me.

Thank you for doing this, Manu.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread manu at gcc dot gnu dot org


--- Comment #10 from manu at gcc dot gnu dot org  2010-02-27 22:26 ---
Reduced testcase:

templateclass A class NumericTraits{};
templateclass B class CovariantVector{};
templateclass C class Image{};
templateclass H,
 class E,
 class D
class F {
  typedef H G;
  typedef
  typename NumericTraitstypename G::PixelType::RealType
  InputRealType;
};
templatetypename TInputImage,
  typename TOutputImage=Image
  CovariantVector
  typename NumericTraits
  typename TInputImage
::PixelType

::TInputImage



class XXX{};
XXXImagefloat 


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread manu at gcc dot gnu dot org


--- Comment #11 from manu at gcc dot gnu dot org  2010-02-27 22:29 ---
Interestingly deleting the typedef H G; makes us give the following error:

pr43087-delta.ii:24:18: error: no type named ‘PixelType’ in ‘class
Imagefloat’


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread manu at gcc dot gnu dot org


--- Comment #12 from manu at gcc dot gnu dot org  2010-02-27 22:41 ---
I meant 'expanding the typedef'.

It would be nice to have a delta tool that expanded typedefs iteratively. Also,
it sometimes good to replace spaces by new lines to give delta larger search
space. I also use the following preprocessing:

cp -f $1 $1.bak
perl -i -0 -w -p -e 's/((class|struct)\s+[_A-Za-z]+)\s*\{/$1\{/sg;' $1
perl -i -0 -w -p -e 's/\{\s+\}/\{\}/sg;' $1
perl -i -0 -w -p -e 's/\s+\{/\{/sg;' $1
perl -i -0 -w -p -e 's/=\s+/=/sg;' $1
perl -i -0 -w -p -e 's/:\s+/:/sg;' $1
perl -i -0 -w -p -e 's/\s+\(/\(/sg;' $1
perl -i -0 -w -p -e 's/([a-zA-Z_]+)/\n$1/sg;' $1
perl -i -0 -w -p -e 's/([a-zA-Z_])/$1\n/sg;' $1
perl -i -0 -w -p -e 's/\n\n/\n/sg;' $1


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread hjl dot tools at gmail dot com


--- Comment #13 from hjl dot tools at gmail dot com  2010-02-27 23:31 
---
(In reply to comment #10)
 Reduced testcase:
 
 templateclass A class NumericTraits{};
 templateclass B class CovariantVector{};
 templateclass C class Image{};
 templateclass H,
  class E,
  class D
 class F {
   typedef H G;
   typedef
   typename NumericTraitstypename G::PixelType::RealType
   InputRealType;
 };
 templatetypename TInputImage,
   typename TOutputImage=Image
   CovariantVector
   typename NumericTraits
   typename TInputImage
 ::PixelType
 
 ::TInputImage
 
 
 
 class XXX{};
 XXXImagefloat 
 

It may be a different issue since the original testcase
compiles with older gcc.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread manu at gcc dot gnu dot org


--- Comment #14 from manu at gcc dot gnu dot org  2010-02-27 23:45 ---
(In reply to comment #13)
 It may be a different issue since the original testcase
 compiles with older gcc.

It is still a regression from gcc 4.4.1:

pr43087-delta.ii:25: error: no type named 'PixelType' in 'class Imagefloat'
pr43087-delta.ii:25: error: template argument 2 is invalid
pr43087-delta.ii:25: error: expected unqualified-id at end of input


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread hjl dot tools at gmail dot com


--- Comment #15 from hjl dot tools at gmail dot com  2010-02-28 00:03 
---
(In reply to comment #14)
 (In reply to comment #13)
  It may be a different issue since the original testcase
  compiles with older gcc.
 
 It is still a regression from gcc 4.4.1:
 
 pr43087-delta.ii:25: error: no type named 'PixelType' in 'class Imagefloat'
 pr43087-delta.ii:25: error: template argument 2 is invalid
 pr43087-delta.ii:25: error: expected unqualified-id at end of input
 

This issue is caused by revision 145440:

http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg00060.html


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-27 Thread hjl dot tools at gmail dot com


--- Comment #16 from hjl dot tools at gmail dot com  2010-02-28 00:08 
---
(In reply to comment #15)
 (In reply to comment #14)
  (In reply to comment #13)
   It may be a different issue since the original testcase
   compiles with older gcc.
  
  It is still a regression from gcc 4.4.1:
  
  pr43087-delta.ii:25: error: no type named 'PixelType' in 'class 
  Imagefloat'
  pr43087-delta.ii:25: error: template argument 2 is invalid
  pr43087-delta.ii:25: error: expected unqualified-id at end of input
  
 
 This issue is caused by revision 145440:
 
 http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg00060.html
 

I opened PR 43206 for it.


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

  BugsThisDependsOn||43206


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-25 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2010-02-26 00:40 ---
Created an attachment (id=19963)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19963action=view)
Reduced test case

This is a somewhat reduced test case that is still way bigger than what I'd
like, but still better than nothing.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-21 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2010-02-21 20:19 ---
The resolution of PR c++/43036 seems related to array types only. So I don't
understand why it fixes this PR. I'd like to investigate a bit further.

The test case is too big for me to understand it so I am delta-reducing it and
it's taking time.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-18 Thread hjl dot tools at gmail dot com


--- Comment #5 from hjl dot tools at gmail dot com  2010-02-18 15:40 ---
Revision 156792:

http://gcc.gnu.org/ml/gcc-cvs/2010-02/msg00375.html

made ICE disappear. I don't know if it really fixes
the bug or just hides it.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-17 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-17 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2010-02-18 00:17 ---
This works with revision 156834.


-- 


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-16 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-02-16 05:04:28 |2010-02-16 10:31:30
   date||


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



[Bug c++/43087] [4.5 Regression] ICE in tsubst, at cp/pt.c:9923

2010-02-16 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2010-02-16 19:54 ---
Reducing a testcase.


-- 


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