public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34573]  New: ICE with nested class
@ 2007-12-24 15:59 sylvain dot pion at sophia dot inria dot fr
  2007-12-24 16:00 ` [Bug c++/34573] " sylvain dot pion at sophia dot inria dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sylvain dot pion at sophia dot inria dot fr @ 2007-12-24 15:59 UTC (permalink / raw)
  To: gcc-bugs

The attached preprocessed source ICEs with current g++ 4.3 :

../../include/CGAL/Visibility_complex_2/Antichain.h:1394: internal compiler
error: Bus error

I really believe the code is valid, as it works with older g++ releases
(although the preprocessed code attached does not, but it is due to
library changes).

I quickly tried to extract a reduced test case but failed, and prefer
to submit a report soon.


-- 
           Summary: ICE with nested class
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sylvain dot pion at sophia dot inria dot fr
  GCC host triplet: i386-apple-darwin8.11.1


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


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

* [Bug c++/34573] ICE with nested class
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
@ 2007-12-24 16:00 ` sylvain dot pion at sophia dot inria dot fr
  2007-12-24 22:19 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sylvain dot pion at sophia dot inria dot fr @ 2007-12-24 16:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from sylvain dot pion at sophia dot inria dot fr  2007-12-24 16:00 -------
Created an attachment (id=14819)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14819&action=view)
pre-processed test case


-- 


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


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

* [Bug c++/34573] ICE with nested class
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
  2007-12-24 16:00 ` [Bug c++/34573] " sylvain dot pion at sophia dot inria dot fr
@ 2007-12-24 22:19 ` pinskia at gcc dot gnu dot org
  2007-12-25 23:41 ` [Bug c++/34573] [4.3 Regression] ICE with nested class in template pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-24 22:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-12-24 22:19 -------
The backtrace:
#0  0x00dec6b0 in htab_find_with_hash (htab=0x0, element=0x546c9a0,
hash=11065652) at /Users/apinski/src/local/gcc/libiberty/hashtab.c:566
#1  0x00080f13 in retrieve_local_specialization (tmpl=0x546c9a0) at
/Users/apinski/src/local/gcc/gcc/cp/pt.c:980
#2  0x000c71f7 in tsubst (t=0x546ca10, args=0x64ca580,
complain=tf_warning_or_error, in_decl=0x547a120) at
/Users/apinski/src/local/gcc/gcc/cp/pt.c:8824
#3  0x000c732a in tsubst (t=0x5478540, args=0x64ca580,
complain=tf_warning_or_error, in_decl=0x547a120) at
/Users/apinski/src/local/gcc/gcc/cp/pt.c:8844
#4  0x000c299e in tsubst_decl (t=0x547a120, args=0x64ca580,
complain=tf_warning_or_error) at /Users/apinski/src/local/gcc/gcc/cp/pt.c:8224
#5  0x000c6882 in tsubst (t=0x547a120, args=0x64ca580,
complain=tf_warning_or_error, in_decl=0x547a120) at
/Users/apinski/src/local/gcc/gcc/cp/pt.c:8799
#6  0x000c318b in tsubst_decl (t=0x547a300, args=0x64ca580,
complain=tf_warning_or_error) at /Users/apinski/src/local/gcc/gcc/cp/pt.c:8260
#7  0x000c6882 in tsubst (t=0x547a300, args=0x64ca580,
complain=tf_warning_or_error, in_decl=0x64cb000) at
/Users/apinski/src/local/gcc/gcc/cp/pt.c:8799
#8  0x001026e1 in instantiate_decl (d=0x64cb000, defer_ok=0,
expl_inst_class_mem_p=0 '\0') at /Users/apinski/src/local/gcc/gcc/cp/pt.c:14786


-- 


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
  2007-12-24 16:00 ` [Bug c++/34573] " sylvain dot pion at sophia dot inria dot fr
  2007-12-24 22:19 ` pinskia at gcc dot gnu dot org
@ 2007-12-25 23:41 ` pinskia at gcc dot gnu dot org
  2007-12-25 23:42 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-25 23:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-12-25 23:40 -------
Reduced testcase:
template < class Gtr_>
void compute_gr()
{
  typedef int Less_chain;
  struct utils {
    utils(const Less_chain& lc)  {};
  };
  utils U(1);
}
int main(void){
  compute_gr<int>();
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |blocker
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   GCC host triplet|i386-apple-darwin8.11.1     |
 GCC target triplet|                            |i386-apple-darwin8.11.1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-25 23:40:53
               date|                            |
            Summary|ICE with nested class       |[4.3 Regression] ICE with
                   |                            |nested class in template
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (2 preceding siblings ...)
  2007-12-25 23:41 ` [Bug c++/34573] [4.3 Regression] ICE with nested class in template pinskia at gcc dot gnu dot org
@ 2007-12-25 23:42 ` pinskia at gcc dot gnu dot org
  2008-01-02 18:18 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-25 23:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-12-25 23:42 -------
Changing compute_gr to a non template, it works.

Using int instead of the typedef, it also works.


-- 


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (3 preceding siblings ...)
  2007-12-25 23:42 ` pinskia at gcc dot gnu dot org
@ 2008-01-02 18:18 ` mmitchel at gcc dot gnu dot org
  2008-01-03 18:28 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2008-01-02 18:18 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=34573


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (4 preceding siblings ...)
  2008-01-02 18:18 ` mmitchel at gcc dot gnu dot org
@ 2008-01-03 18:28 ` jakub at gcc dot gnu dot org
  2008-01-21 23:24 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-03 18:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-01-03 18:09 -------
Related to PR19407 I guess.  CCing Jason.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (5 preceding siblings ...)
  2008-01-03 18:28 ` jakub at gcc dot gnu dot org
@ 2008-01-21 23:24 ` jason at gcc dot gnu dot org
  2008-01-22 14:54 ` jason at gcc dot gnu dot org
  2008-01-22 15:48 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-01-21 23:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-01-08 22:30:04         |2008-01-21 23:16:32
               date|                            |


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (6 preceding siblings ...)
  2008-01-21 23:24 ` jason at gcc dot gnu dot org
@ 2008-01-22 14:54 ` jason at gcc dot gnu dot org
  2008-01-22 15:48 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-01-22 14:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2008-01-22 14:48 -------
Subject: Bug 34573

Author: jason
Date: Tue Jan 22 14:48:05 2008
New Revision: 131724

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131724
Log:
        PR c++/33959
        * pt.c (tsubst_aggr_type): Make sure our context is complete.

        PR c++/34573
        * pt.c (retrieve_local_specialization): Robustify.
        (tsubst_pack_expansion, tsubst_decl): Remove redundant checks.

        PR c++/34846
        * pt.c (tsubst): Only call retrieve_local_specialization if the
        original typedef was in a function template.

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


-- 


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


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

* [Bug c++/34573] [4.3 Regression] ICE with nested class in template
  2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
                   ` (7 preceding siblings ...)
  2008-01-22 14:54 ` jason at gcc dot gnu dot org
@ 2008-01-22 15:48 ` jakub at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-22 15:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2008-01-22 14:56 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-01-22 14:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-24 15:59 [Bug c++/34573] New: ICE with nested class sylvain dot pion at sophia dot inria dot fr
2007-12-24 16:00 ` [Bug c++/34573] " sylvain dot pion at sophia dot inria dot fr
2007-12-24 22:19 ` pinskia at gcc dot gnu dot org
2007-12-25 23:41 ` [Bug c++/34573] [4.3 Regression] ICE with nested class in template pinskia at gcc dot gnu dot org
2007-12-25 23:42 ` pinskia at gcc dot gnu dot org
2008-01-02 18:18 ` mmitchel at gcc dot gnu dot org
2008-01-03 18:28 ` jakub at gcc dot gnu dot org
2008-01-21 23:24 ` jason at gcc dot gnu dot org
2008-01-22 14:54 ` jason at gcc dot gnu dot org
2008-01-22 15:48 ` jakub 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).