public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/3907] nested template parm collides with member name
       [not found] <20010731174601.3907.fasbjx@free.fr>
@ 2003-06-19 18:37 ` pinskia at physics dot uc dot edu
  2003-07-29 14:48 ` [Bug c++/3907] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-19 18:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-05-12 00:00:00         |2003-06-19 18:37:22
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-19 18:37 -------
same error message on the mainline (20030618):
pr3907.cc:7: error: declaration of `typename T<N>::E C<s>::t'
pr3907.cc:6: error: changes meaning of `t' from `int t'


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

* [Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
       [not found] <20010731174601.3907.fasbjx@free.fr>
  2003-06-19 18:37 ` [Bug c++/3907] nested template parm collides with member name pinskia at physics dot uc dot edu
@ 2003-07-29 14:48 ` pinskia at physics dot uc dot edu
  2003-09-15  1:44 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 14:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1
   Last reconfirmed|2003-07-27 06:58:39         |2003-07-29 14:48:26
               date|                            |
            Summary|nested template parm        |[3.3/3.4 Regression] nested
                   |collides with member name   |template parm collides with
                   |                            |member name
   Target Milestone|---                         |3.3.2


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-29 14:48 -------
Regression from 2.91.66.


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

* [Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
       [not found] <20010731174601.3907.fasbjx@free.fr>
  2003-06-19 18:37 ` [Bug c++/3907] nested template parm collides with member name pinskia at physics dot uc dot edu
  2003-07-29 14:48 ` [Bug c++/3907] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
@ 2003-09-15  1:44 ` cvs-commit at gcc dot gnu dot org
  2003-09-15  1:56 ` cvs-commit at gcc dot gnu dot org
  2003-09-15  1:58 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-15  1:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-09-15 00:59 -------
Subject: Bug 3907

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2003-09-15 00:59:29

Modified files:
	gcc            : ChangeLog coverage.c langhooks-def.h 
	                 langhooks.c 
	gcc/cp         : ChangeLog call.c class.c cp-lang.c cp-tree.h 
	                 decl.c semantics.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: template12.C 

Log message:
	* coverage.c (create_coverage): Do not call pushlevel/poplevel.
	* langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
	function.
	* langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
	
	PR c++/3907
	* class.c (maybe_note_name_used_in_class): Refine test for whether
	or not we are in a class scope.
	
	* cp-tree.h (language_function): Remove x_expanding_p.
	(expanding_p): Remove.
	(doing_semantic_analysis_p): Remove.
	(scope_kind): Add sk_function_parms, sk_class,
	sk_namespace.
	(innermost_scope_kind): New method.
	* call.c (cxx_type_promotes_to): Use type_decays_to.
	* cp-lang.c (LANG_HOOKS_PUSHLEVEL): Redefine.
	(LANG_HOOKS_POPLEVEL): Likewise.
	* decl.c (cp_binding_level): Remove parm_flag, template_parms_p,
	template_spec_p, namespace_p, is_for_scope, is_try_scope, and
	is_catch_scope.  Add kind and explicit_spec_p.
	(cxx_scope_descriptor): Use a lookup table.
	(find_class_binding_level): Use "kind" field in binding_level, not
	the various flags.
	(pop_binding_level): Likewise.
	(innermost_nonclass_level): Likewise.
	(toplevel_bindings_p): Likewise.
	(namespace_bindings_p): Likewise.
	(template_parm_scope_p): Likewise.
	(innermost_scope_kind): New method.
	(current_tmpl_spec_kind): Use "kind" field in binding_level, not
	the various flags.
	(pushlevel): Remove check for doing_semantic_analysis_p.
	(begin_scope): Simplify.
	(add_decl_to_level): Use "kind" field in binding_level, not
	the various flags.
	(push_local_binding): Likewise.
	(pop_label): Remove check for doing_semantic_analysis_p.
	(poplevel): Use "kind" field in binding_level, not
	the various flags.
	(set_block): Remove check for doing_semantic_analysis_p.
	(pushlevel_class): Use "kind" field in binding_level, not
	the various flags.
	(poplevel_class): Likewise.
	(initial_push_namespace_scope): Likewise.
	(maybe_push_to_top_level): Likewise.
	(set_identifier_type_value_with_scope): Likewise.
	(pop_everything): Likewise.
	(maybe_process_template_type_declaration): Likewise.
	(pushtag): Likewise.
	(pushdecl): Likewise.
	(pushdecl_with_scope): Likewise.
	(check_previous_goto_1): Likewise.
	(define_label): Likewise.
	(finish_case_label): Likewise.
	(lookup_tag): Likewise.
	(unqualified_namespace_lookup): Likewise.
	(lookup_name_real): Likewise.
	(lookup_name_current_level): Likewise.
	(lookup_type_current_level): Likewise.
	(record_builtin_type): Likewise.
	(cp_make_fname_decl): Likewise.
	(maybe_inject_for_scope_var): Likewise.
	(cp_finish_decl): Remove check for doing_semantic_analysis_p.
	(start_function): Use begin_scope, not pushlevel.
	(finish_function): Use "kind" field in binding_level, not
	the various flags.
	(start_method): Use begin_scope, not pushlevel.
	(make_label_decl): Do not check expanding_p.
	(save_function-data): Do not set expanding_p.
	(cxx_push_function_context): Do not clear expanding_p.
	* semantics.c (cxx_expand_function_start): Do not set expanding_p.
	
	PR c++/3907
	* g++.dg/parse/template12.C: New test.
	
	* g++.dg/abi/bitfield11.C: New test.
	* g++.dg/abi/bitfield12.C: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1055&r2=2.1056
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/coverage.c.diff?cvsroot=gcc&r1=1.19&r2=1.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks-def.h.diff?cvsroot=gcc&r1=1.66&r2=1.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&r1=1.52&r2=1.53
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3678&r2=1.3679
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.432&r2=1.433
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.571&r2=1.572
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-lang.c.diff?cvsroot=gcc&r1=1.65&r2=1.66
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.915&r2=1.916
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1125&r2=1.1126
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.361&r2=1.362
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3053&r2=1.3054
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/template12.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


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

* [Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
       [not found] <20010731174601.3907.fasbjx@free.fr>
                   ` (2 preceding siblings ...)
  2003-09-15  1:44 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-15  1:56 ` cvs-commit at gcc dot gnu dot org
  2003-09-15  1:58 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-15  1:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-09-15 01:43 -------
Subject: Bug 3907

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-09-15 01:43:46

Modified files:
	gcc/cp         : ChangeLog class.c cp-tree.h decl.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/parse: template12.C 

Log message:
	PR c++/3907
	* cp-tree.h (innermost_scope_is_class_p): New function.
	* class.c (maybe_note_name_used_in_class): Refine test for whether
	or not we are in a class scope.
	* decl.c (innermost_scope_is_class_p): Define.
	
	PR c++/3907
	* g++.dg/parse/template12.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.206&r2=1.3076.2.207
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.499.2.20&r2=1.499.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.32&r2=1.776.2.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.61&r2=1.965.2.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.279&r2=1.2261.2.280
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/template12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1


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

* [Bug c++/3907] [3.3/3.4 Regression] nested template parm collides with member name
       [not found] <20010731174601.3907.fasbjx@free.fr>
                   ` (3 preceding siblings ...)
  2003-09-15  1:56 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-15  1:58 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-15  1:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

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


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-09-15 01:44 -------
Fixed in GCC 3.3.2, GCC 3.4.


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

end of thread, other threads:[~2003-09-15  1:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010731174601.3907.fasbjx@free.fr>
2003-06-19 18:37 ` [Bug c++/3907] nested template parm collides with member name pinskia at physics dot uc dot edu
2003-07-29 14:48 ` [Bug c++/3907] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
2003-09-15  1:44 ` cvs-commit at gcc dot gnu dot org
2003-09-15  1:56 ` cvs-commit at gcc dot gnu dot org
2003-09-15  1:58 ` mmitchel 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).