public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28235]  New: segmentation fault ICE in 4.0 and 4.1
@ 2006-07-03 12:33 sascha dot krissler at web dot de
  2006-07-03 12:36 ` [Bug c++/28235] " sascha dot krissler at web dot de
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: sascha dot krissler at web dot de @ 2006-07-03 12:33 UTC (permalink / raw)
  To: gcc-bugs

have not tested 4.2, debian doesnt have it and i am lazy


-- 
           Summary: segmentation fault ICE in 4.0 and 4.1
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sascha dot krissler at web dot de
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
@ 2006-07-03 12:36 ` sascha dot krissler at web dot de
  2006-07-03 12:39 ` sascha dot krissler at web dot de
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sascha dot krissler at web dot de @ 2006-07-03 12:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from sascha dot krissler at web dot de  2006-07-03 12:36 -------
Created an attachment (id=11805)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11805&action=view)
command line and compiler output


-- 


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
  2006-07-03 12:36 ` [Bug c++/28235] " sascha dot krissler at web dot de
@ 2006-07-03 12:39 ` sascha dot krissler at web dot de
  2006-07-03 12:45 ` sascha dot krissler at web dot de
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sascha dot krissler at web dot de @ 2006-07-03 12:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sascha dot krissler at web dot de  2006-07-03 12:39 -------
Created an attachment (id=11806)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11806&action=view)
preprocessed source code (gzip compressed)


-- 


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
  2006-07-03 12:36 ` [Bug c++/28235] " sascha dot krissler at web dot de
  2006-07-03 12:39 ` sascha dot krissler at web dot de
@ 2006-07-03 12:45 ` sascha dot krissler at web dot de
  2006-07-03 13:21 ` sascha dot krissler at web dot de
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sascha dot krissler at web dot de @ 2006-07-03 12:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sascha dot krissler at web dot de  2006-07-03 12:45 -------
thank you for making such a standard compliant c++ compiler


-- 

sascha dot krissler at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sascha dot krissler at web
                   |                            |dot de


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (2 preceding siblings ...)
  2006-07-03 12:45 ` sascha dot krissler at web dot de
@ 2006-07-03 13:21 ` sascha dot krissler at web dot de
  2006-07-03 15:46 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sascha dot krissler at web dot de @ 2006-07-03 13:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sascha dot krissler at web dot de  2006-07-03 13:21 -------
Created an attachment (id=11808)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11808&action=view)
minimal difference causing ICE

after applying this patch it throws an ICE



@@ -52823,13 +52823,13 @@
   }

   template <typename KEY, typename VALUE, typename HASHFN,
-     typename InlineNat = PerfectHash::NoNatImpl<KEY, VALUE>, bool BitSet =
true >
+     typename InlineNat = PerfectHash::NoNatImpl<KEY, VALUE>, bool BitSet1 =
true >
   class PerfectHashMap : public HASHFN,
     public PerfectHash::NatBitset<
     true
     >::type
   {
-
+    static const bool BitSet = BitSet1;

     typedef typename PerfectHash::NatBitset<BitSet>::type bitset_type;
     typedef std::vector<typename PerfectHash::VType<KEY, VALUE, InlineNat,
false>::type> entries_t;


-- 

sascha dot krissler at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #11806|0                           |1
        is obsolete|                            |


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (3 preceding siblings ...)
  2006-07-03 13:21 ` sascha dot krissler at web dot de
@ 2006-07-03 15:46 ` pinskia at gcc dot gnu dot org
  2006-07-03 18:16 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-03 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-07-03 15:46 -------
Reducing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.2.0


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


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

* [Bug c++/28235] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (4 preceding siblings ...)
  2006-07-03 15:46 ` pinskia at gcc dot gnu dot org
@ 2006-07-03 18:16 ` pinskia at gcc dot gnu dot org
  2006-07-03 18:19 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-03 18:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-07-03 18:16 -------
Reduced testcase:
template <bool BitSet1 = true >
class PerfectHashMap 
{
        static const bool BitSet = BitSet1;
    template <bool L_BitSet = BitSet> struct makeIter { };
        typedef typename makeIter<>::type const_iterator;
};


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


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


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

* [Bug c++/28235] [4.0/4.1/4.2 Regression] segmentation fault ICE in 4.0 and 4.1
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (5 preceding siblings ...)
  2006-07-03 18:16 ` pinskia at gcc dot gnu dot org
@ 2006-07-03 18:19 ` pinskia at gcc dot gnu dot org
  2006-07-12 14:08 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-03 18:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |major
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|4.2.0                       |4.2.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-03 18:19:38
               date|                            |
            Summary|segmentation fault ICE in   |[4.0/4.1/4.2 Regression]
                   |4.0 and 4.1                 |segmentation fault ICE in
                   |                            |4.0 and 4.1
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (6 preceding siblings ...)
  2006-07-03 18:19 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-07-12 14:08 ` reichelt at gcc dot gnu dot org
  2006-07-17  3:01 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-12 14:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-07-12 14:08 -------
Even shorter (valid) testcase:

=========================================
template<typename> struct A
{
    static const bool i = true;
    template<bool = i> struct B {};
    B<> b;
};
=========================================

This crashes since GCC 4.0.3 and was rejected by GCC 3.4.0 - 4.0.2.


-- 


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


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

* [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (7 preceding siblings ...)
  2006-07-12 14:08 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template reichelt at gcc dot gnu dot org
@ 2006-07-17  3:01 ` mmitchel at gcc dot gnu dot org
  2006-07-19  0:23 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  3:01 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (8 preceding siblings ...)
  2006-07-17  3:01 ` mmitchel at gcc dot gnu dot org
@ 2006-07-19  0:23 ` mmitchel at gcc dot gnu dot org
  2006-07-19  0:25 ` [Bug c++/28235] [4.0/4.1 " mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-19  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2006-07-19 00:22 -------
Subject: Bug 28235

Author: mmitchel
Date: Wed Jul 19 00:22:43 2006
New Revision: 115576

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115576
Log:
        PR c++/28235
        * pt.c (tsubst_decl): Handling substitutions into a static data
        member from within the scope of the tempalte itself.
        PR c++/28235
        * g++.dg/template/static27.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/static27.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28235] [4.0/4.1 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (9 preceding siblings ...)
  2006-07-19  0:23 ` mmitchel at gcc dot gnu dot org
@ 2006-07-19  0:25 ` mmitchel at gcc dot gnu dot org
  2006-07-19  5:09 ` [Bug c++/28235] [4.0 " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-19  0:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mmitchel at gcc dot gnu dot org  2006-07-19 00:25 -------
Fixed in 4.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
            Summary|[4.0/4.1/4.2 Regression] ICE|[4.0/4.1 Regression] ICE
                   |with static const member as |with static const member as
                   |default parameter in        |default parameter in
                   |template                    |template


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


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

* [Bug c++/28235] [4.0 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (10 preceding siblings ...)
  2006-07-19  0:25 ` [Bug c++/28235] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-07-19  5:09 ` mmitchel at gcc dot gnu dot org
  2006-07-19  5:10 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-19  5:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from mmitchel at gcc dot gnu dot org  2006-07-19 05:09 -------
Subject: Bug 28235

Author: mmitchel
Date: Wed Jul 19 05:09:00 2006
New Revision: 115577

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115577
Log:
        PR c++/28235
        * pt.c (tsubst_decl): Handling substitutions into a static data
        member from within the scope of the tempalte itself.
        PR c++/28235
        * g++.dg/template/static27.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/static27.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/pt.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.0/4.1 Regression] ICE    |[4.0 Regression] ICE with
                   |with static const member as |static const member as
                   |default parameter in        |default parameter in
                   |template                    |template


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


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

* [Bug c++/28235] [4.0 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (11 preceding siblings ...)
  2006-07-19  5:09 ` [Bug c++/28235] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-07-19  5:10 ` mmitchel at gcc dot gnu dot org
  2006-07-20  9:18 ` pinskia at gcc dot gnu dot org
  2007-01-31 23:21 ` reichelt at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-19  5:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.0/4.1 Regression] ICE    |[4.0 Regression] ICE with
                   |with static const member as |static const member as
                   |default parameter in        |default parameter in
                   |template                    |template


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


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

* [Bug c++/28235] [4.0 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (12 preceding siblings ...)
  2006-07-19  5:10 ` mmitchel at gcc dot gnu dot org
@ 2006-07-20  9:18 ` pinskia at gcc dot gnu dot org
  2007-01-31 23:21 ` reichelt at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-20  9:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-07-20 09:18 -------
*** Bug 28225 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tbm at cyrius dot com


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


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

* [Bug c++/28235] [4.0 Regression] ICE with static const member as default parameter in template
  2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
                   ` (13 preceding siblings ...)
  2006-07-20  9:18 ` pinskia at gcc dot gnu dot org
@ 2007-01-31 23:21 ` reichelt at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-31 23:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from reichelt at gcc dot gnu dot org  2007-01-31 23:21 -------
This is now a rejects-valid again in GCC 4.0.4 (as in 3.4.0 - 4.0.2).
So this bug remains unfixed on the 4.0 branch, but is fixed in GCC 4.1.2.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

end of thread, other threads:[~2007-01-31 23:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 12:33 [Bug c++/28235] New: segmentation fault ICE in 4.0 and 4.1 sascha dot krissler at web dot de
2006-07-03 12:36 ` [Bug c++/28235] " sascha dot krissler at web dot de
2006-07-03 12:39 ` sascha dot krissler at web dot de
2006-07-03 12:45 ` sascha dot krissler at web dot de
2006-07-03 13:21 ` sascha dot krissler at web dot de
2006-07-03 15:46 ` pinskia at gcc dot gnu dot org
2006-07-03 18:16 ` pinskia at gcc dot gnu dot org
2006-07-03 18:19 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-07-12 14:08 ` [Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template reichelt at gcc dot gnu dot org
2006-07-17  3:01 ` mmitchel at gcc dot gnu dot org
2006-07-19  0:23 ` mmitchel at gcc dot gnu dot org
2006-07-19  0:25 ` [Bug c++/28235] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-07-19  5:09 ` [Bug c++/28235] [4.0 " mmitchel at gcc dot gnu dot org
2006-07-19  5:10 ` mmitchel at gcc dot gnu dot org
2006-07-20  9:18 ` pinskia at gcc dot gnu dot org
2007-01-31 23:21 ` reichelt at gcc dot gnu dot org

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).