public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16301] New: ICE with strong using
@ 2004-06-30 17:49 bangerth at dealii dot org
  2004-06-30 20:07 ` [Bug c++/16301] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2004-06-30 17:49 UTC (permalink / raw)
  To: gcc-bugs

Not important, but maybe worth fixing sometime anyway: 
------------------ 
namespace NS2 
{ 
  using namespace NS1 __attribute__ ((strong)); 
} 
------------------ 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc 
y.cc:3: error: expected namespace-name before "__attribute__" 
y.cc:3: error: `<type error>' is not a namespace 
y.cc:3: internal compiler error: tree check: expected namespace_decl, have 
error_mark in parse_using_directive, at cp/name-lookup.c:3409 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W.

-- 
           Summary: ICE with strong using
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/16301] [3.4/3.5 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
@ 2004-06-30 20:07 ` reichelt at gcc dot gnu dot org
  2004-07-01  1:20 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-06-30 20:07 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-
                   |                            |checking, ice-on-invalid-
                   |                            |code, monitored
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-30 20:00:24
               date|                            |
            Summary|ICE with strong using       |[3.4/3.5 regression] ICE
                   |                            |with strong using


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


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

* [Bug c++/16301] [3.4/3.5 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
  2004-06-30 20:07 ` [Bug c++/16301] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
@ 2004-07-01  1:20 ` pinskia at gcc dot gnu dot org
  2004-08-02 18:53 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-01  1:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-01 01:20 -------
hmm, I do not know if I could call this a regression but ..

Confirmed.
And this patch fixes at this the first ICE (I do not know if another comes up):
Index: name-lookup.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/cp/name-lookup.c,v
retrieving revision 1.62
diff -u -d -b -w -u -p -r1.62 name-lookup.c
--- name-lookup.c       26 Jun 2004 21:11:19 -0000      1.62
+++ name-lookup.c       1 Jul 2004 01:19:39 -0000
@@ -3432,7 +3432,7 @@ parse_using_directive (tree namespace, t
        {
          if (!toplevel_bindings_p ())
            error ("strong using only meaningful at namespace scope");
-         else
+         else if (namespace != error_mark_node)
            DECL_NAMESPACE_ASSOCIATIONS (namespace)
              = tree_cons (current_namespace, 0,
                           DECL_NAMESPACE_ASSOCIATIONS (namespace));

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4.2


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


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

* [Bug c++/16301] [3.4/3.5 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
  2004-06-30 20:07 ` [Bug c++/16301] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
  2004-07-01  1:20 ` pinskia at gcc dot gnu dot org
@ 2004-08-02 18:53 ` mmitchel at gcc dot gnu dot org
  2004-08-29 18:06 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-02 18:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-02 18:53 -------
Assigned to Jason, as the inventor of "strong using".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at redhat dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/16301] [3.4/3.5 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (2 preceding siblings ...)
  2004-08-02 18:53 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:06 ` mmitchel at gcc dot gnu dot org
  2004-10-14 23:58 ` [Bug c++/16301] [3.4/4.0 " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 18:06 -------
Postponed all ice-on-invalid bugs to GCC 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


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


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

* [Bug c++/16301] [3.4/4.0 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (3 preceding siblings ...)
  2004-08-29 18:06 ` mmitchel at gcc dot gnu dot org
@ 2004-10-14 23:58 ` pinskia at gcc dot gnu dot org
  2004-10-15  0:25 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 23:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-14 23:58 -------
Okay, my fix is only thing which is needed I will submit it then.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jason at redhat dot com     |pinskia at gcc dot gnu dot
                   |                            |org
      Known to fail|3.4.0 4.0                   |3.4.0 4.0.0


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


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

* [Bug c++/16301] [3.4/4.0 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (4 preceding siblings ...)
  2004-10-14 23:58 ` [Bug c++/16301] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-15  0:25 ` pinskia at gcc dot gnu dot org
  2004-10-15 14:30 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15  0:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-15 00:25 -------
I posted the patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01236.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/16301] [3.4/4.0 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (5 preceding siblings ...)
  2004-10-15  0:25 ` pinskia at gcc dot gnu dot org
@ 2004-10-15 14:30 ` cvs-commit at gcc dot gnu dot org
  2004-10-15 14:32 ` [Bug c++/16301] [3.4 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-15 14:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-15 14:30 -------
Subject: Bug 16301

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-10-15 14:30:31

Modified files:
	gcc/cp         : name-lookup.c ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/lookup: strong-using-4.C 

Log message:
	2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16301
	* name-lookup.c (parse_using_directive): If we have a
	error_mark_node, do not set the decl namespace associations
	on it.
	
	2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16301
	* g++.dg/lookup/strong-using-4.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.86&r2=1.87
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4434&r2=1.4435
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/strong-using-4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4455&r2=1.4456



-- 


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


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

* [Bug c++/16301] [3.4 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (6 preceding siblings ...)
  2004-10-15 14:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-15 14:32 ` pinskia at gcc dot gnu dot org
  2004-10-17 17:40 ` pinskia at gcc dot gnu dot org
  2004-10-17 17:41 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 14:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-15 14:32 -------
I will apply the patch to 3.4 branch after some more testing.
Fixed on the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.0 4.0.0                 |3.4.0
      Known to work|3.3.4                       |3.3.4 4.0.0
            Summary|[3.4/4.0 regression] ICE    |[3.4 regression] ICE with
                   |with strong using           |strong using


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


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

* [Bug c++/16301] [3.4 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (7 preceding siblings ...)
  2004-10-15 14:32 ` [Bug c++/16301] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-17 17:40 ` pinskia at gcc dot gnu dot org
  2004-10-17 17:41 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-17 17:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-17 17:40 -------
Fixed.

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


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


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

* [Bug c++/16301] [3.4 regression] ICE with strong using
  2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
                   ` (8 preceding siblings ...)
  2004-10-17 17:40 ` pinskia at gcc dot gnu dot org
@ 2004-10-17 17:41 ` cvs-commit at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-17 17:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-17 17:41 -------
Subject: Bug 16301

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	pinskia@gcc.gnu.org	2004-10-17 17:41:01

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog name-lookup.c 
Added files:
	gcc/testsuite/g++.dg/lookup: strong-using-4.C 

Log message:
	2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16301
	* namelookup.c (parse_using_directive): If we have a
	error_mark_node, do not set the decl namespace associations
	on it.
	
	2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16301
	* g++.dg/lookup/strong-using-4.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.291&r2=1.3389.2.292
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.170&r2=1.3892.2.171
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.34.2.17&r2=1.34.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/strong-using-4.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

end of thread, other threads:[~2004-10-17 17:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 17:49 [Bug c++/16301] New: ICE with strong using bangerth at dealii dot org
2004-06-30 20:07 ` [Bug c++/16301] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
2004-07-01  1:20 ` pinskia at gcc dot gnu dot org
2004-08-02 18:53 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:06 ` mmitchel at gcc dot gnu dot org
2004-10-14 23:58 ` [Bug c++/16301] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-15  0:25 ` pinskia at gcc dot gnu dot org
2004-10-15 14:30 ` cvs-commit at gcc dot gnu dot org
2004-10-15 14:32 ` [Bug c++/16301] [3.4 " pinskia at gcc dot gnu dot org
2004-10-17 17:40 ` pinskia at gcc dot gnu dot org
2004-10-17 17:41 ` cvs-commit 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).