Re: c++/175: Internal compiler error in GCC snapshot for syntactically-incorrect input
Synopsis: Internal compiler error in GCC snapshot for syntactically-incorrect input State-Changed-From-To: analyzed->closed State-Changed-By: lerdsuwa State-Changed-When: Tue Oct 30 06:19:07 2001 State-Changed-Why: Closed in the main trunk. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=175&database=gcc
Re: c++/4739: gcc version 2.95.3 20010315 (SuSE) produces internal error
Synopsis: gcc version 2.95.3 20010315 (SuSE) produces internal error State-Changed-From-To: open->closed State-Changed-By: lerdsuwa State-Changed-When: Fri Nov 2 08:01:12 2001 State-Changed-Why: GCC 3.0 and main trunk no longer ICE. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4739&database=gcc
[Bug c++/19735] Grammar "error" in error message.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-02-17 16:12 --- Fixed in the mainline by: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg02230.html -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19735
[Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-02-28 06:22 --- If you want a work around, simply use this in the first 'friend' declaration: friend class util::persistent_object_manager; There is still uncertainty about whether name from 'using' declaration/directive is allowed (DR138) so your workaround may not work in the future. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948
[Bug c++/20234] ambiguity with friend name injection and using directive
-- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-03-03 16:27:29 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20234
[Bug c++/20234] ambiguity with friend name injection and using directive
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-03 16:28 --- I think NS::C should remain hidden so the declaration: C c; should be OK. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-03-03 16:27:29 |2005-03-03 16:28:43 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20234
[Bug c++/19311] [3.4/4.0 Regression] ICE in resolve_overloaded_unification
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-05 15:46 --- Fixed in the mainline. Other branches are being tested and will be fixed once I finish retesting the patch. -- What|Removed |Added Summary|[3.4/4.0/4.1 Regression] ICE|[3.4/4.0 Regression] ICE in |in |resolve_overloaded_unificati |resolve_overloaded_unificati|on |on | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19311
[Bug c++/19311] [3.4/4.0 Regression] ICE in resolve_overloaded_unification
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-06 17:16 --- Fixed in 3.4 and 4.0 branches. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19311
[Bug c++/20358] Data member of local class of friend function of template class considered a member template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-07 14:24 --- Yes, this is a bug in GCC 3.3.x and earlier versions. Bug fixes to GCC 3.3.x branch is now limited to certain regression. So this bug will not be fixed there. The latest released branch, GCC 3.4.x, does not have this bug. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20358
[Bug c++/20357] Multiply defined assembler symbols for template instantiations
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-07 14:29 --- Confirm as a bug. It's still present in the mainline. -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-03-07 14:29:51 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20357
[Bug c++/20381] [4.0/4.1 Regression] ICE in build_ptrmemfunc, at cp/typeck.c:5702
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-09 11:35 --- Looking at it. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-03-08 14:12:44 |2005-03-09 11:35:45 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20381
[Bug c++/20381] [4.0/4.1 Regression] ICE in build_ptrmemfunc, at cp/typeck.c:5702
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-10 15:11 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01028.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20381
[Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-11 16:19 --- Got it. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-03-05 19:40:09 |2005-03-11 16:19:56 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20333
[Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-11 16:27 --- The diagnostic is missing due to calling lookup_name_real inside cp_parser_lookup_name without the LOOKUP_COMPLAIN flag. Too bad we cannot just add this flag because this will cause duplicate error messages. cp_parser_lookup_name are called multiple times during tentative parse. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293
[Bug c++/20420] Incorrectly Accepts double declarations
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 06:18 --- It's xref_tag/push_tag bug. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-03-11 14:50:52 |2005-03-12 06:18:58 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20420
[Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 06:21 --- Patch in progress. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-02-28 00:27:24 |2005-03-12 06:21:06 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20240
[Bug c++/20240] [3.3/3.4/4.0/4.1 Regression] invalid using-redeclaration accepted
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 12:40 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01208.html -- What|Removed |Added Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20240
[Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 12:41 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01207.html -- What|Removed |Added Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20333
[Bug c++/20234] ambiguity with friend name injection and using directive
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 15:13 --- The patch that fixes this bug is the same as the one in PR1016. Closing it as a duplicate. *** This bug has been marked as a duplicate of 1016 *** -- What|Removed |Added BugsThisDependsOn||1016 Status|ASSIGNED|RESOLVED Keywords||patch Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20234
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-12 15:13 --- *** Bug 20234 has been marked as a duplicate of this bug. *** -- What|Removed |Added OtherBugsDependingO||20234 nThis|| CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-13 14:18 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01283.html It's the same as in attachment. I retested it and add the explanation. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/19403] [4.0/4.1 Regression] name lookup is broken with friends
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-13 14:21 --- The fix is the same as PR1016. GCC 3.4 and earlier compiles but doesn't have correct behavior. So this should not be treated as regression. -- What|Removed |Added BugsThisDependsOn||1016 AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-01-12 18:42:20 |2005-03-13 14:21:48 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403
[Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-13 14:25 --- Look like caused by my changes to pushtag. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2005-02-14 15:02:03 |2005-03-13 14:25:34 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948
[Bug c++/4403] incorrect class becomes a friend in template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-13 16:47 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01294.html This is simply the patch in the attachment to this PR retested with explanation added. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403
[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-13 16:48 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01294.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9783
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-14 14:40 --- Fixed in the mainline. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/4403] incorrect class becomes a friend in template
-- Bug 4403 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403
[Bug c++/16995] [meta-bug] C++ friend injection
-- Bug 16995 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16995
[Bug c++/13830] Invalid covariant type for identical type, friend related
-- Bug 13830 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13830
[Bug c++/20234] ambiguity with friend name injection and using directive
-- Bug 20234 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20234
[Bug c++/19403] [4.0/4.1 Regression] name lookup is broken with friends
-- Bug 19403 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403
[Bug other/17652] [meta-bug] GCC 4.1 pending patches
-- Bug 17652 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17652
[Bug c++/12944] [meta-bug] C++ name-lookup problems
-- Bug 12944 depends on bug 1016, which changed state. Bug 1016 Summary: [DR 166] friend class declarations not observing namespace rules. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944
[Bug c++/19403] [4.0/4.1 Regression] name lookup is broken with friends
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-14 14:46 --- Fixed in the mainline. Won't fix in 4.0 branch since the GCC 3.4.x behavior is also wrong. The error message present in 4.0 is useful to point out that the code need to be updated because GCC 4.1 will accept the code but have different behavior. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|4.0.0 |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403
[Bug c++/16995] [meta-bug] C++ friend injection
-- Bug 16995 depends on bug 19403, which changed state. Bug 19403 Summary: [4.0/4.1 Regression] name lookup is broken with friends http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16995
[Bug c++/4403] incorrect class becomes a friend in template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-14 14:53 --- Fixed in the mainline. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403
[Bug c++/16995] [meta-bug] C++ friend injection
-- Bug 16995 depends on bug 4403, which changed state. Bug 4403 Summary: incorrect class becomes a friend in template http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16995
[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.
-- Bug 9783 depends on bug 4403, which changed state. Bug 4403 Summary: incorrect class becomes a friend in template http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9783
[Bug other/17652] [meta-bug] GCC 4.1 pending patches
-- Bug 17652 depends on bug 4403, which changed state. Bug 4403 Summary: incorrect class becomes a friend in template http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17652
[Bug c++/12944] [meta-bug] C++ name-lookup problems
-- Bug 12944 depends on bug 4403, which changed state. Bug 4403 Summary: incorrect class becomes a friend in template http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4403 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944
[Bug c++/12944] [meta-bug] C++ name-lookup problems
-- Bug 12944 depends on bug 9783, which changed state. Bug 9783 Summary: [DR433] Can't forward reference class in argument to templated method. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9783 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944
[Bug c++/9783] [DR433] Can't forward reference class in argument to templated method.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-14 14:54 --- Fixed in the mainline. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9783
[Bug c++/20234] ambiguity with friend name injection and using directive
-- What|Removed |Added Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20234
[Bug c++/19948] [4.0 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-16 14:14 --- Mainline is fixed. No error message is produced which is the correct behavior. Will recheck 4.0 branch. -- What|Removed |Added Summary|[4.0/4.1 Regression] ICE: |[4.0 Regression] ICE: tree |tree check: expected class |check: expected class |'declaration', have |'declaration', have |'exceptional' (error_mark) |'exceptional' (error_mark) |in pushtag, at cp/name- |in pushtag, at cp/name- |lookup.c:4658 |lookup.c:4658 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948
[Bug c++/19948] [4.0 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-16 16:05 --- Cannot reproduce it now on 4.0. I think it's already fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948
[Bug c++/19948] [4.0 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-16 16:09 --- ICE no longer reproducible. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948
[Bug c++/16995] [meta-bug] C++ friend injection
-- Bug 16995 depends on bug 19948, which changed state. Bug 19948 Summary: [4.0 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16995
[Bug c++/9782] constructor not called on higher-dimensional arrays of template types
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-18 15:08 --- Now the code is rejected by GCC in 4.0 branch and mainline. -- What|Removed |Added Keywords||rejects-valid http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9782
[Bug c++/19772] [3.4/4.0/4.1 Regression] crash on invalid template friend decl
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-18 16:39 --- Got it. Mainline ICE on corrected code. 4.0 ICE on both original and corrected one. -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Keywords||ice-on-valid-code Last reconfirmed|2005-02-03 03:36:13 |2005-03-18 16:39:32 date|| Summary|crash on invalid template |[3.4/4.0/4.1 Regression] |friend decl |crash on invalid template ||friend decl http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19772
[Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-19 12:27 --- Fixed in 3.4/4.0/4.1. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20333
[Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-19 14:15 --- Fixed in 3.4/4.0/4.1. -- What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW Summary|[3.3/3.4/4.0/4.1 Regression]|[3.3 Regression] invalid |invalid using-redeclaration |using-redeclaration accepted |accepted| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20240
[Bug c++/20547] undefined reference to "static const" fields of classes
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-20 13:55 --- Here is the relevant section of the standard (TC1, section 9.4.2, paragraph 4): If a 'static' data member is of 'const' integral or 'const' enumeral type, its declaration in the class definition can specify a 'constant-initializer' which shall be an integral constant expression (5.19). In that case, the member can appear in integral constant expressions. The member shall still be defined in a namespace scope if it is used in the program and the namespace scope definition shall not contain an 'initializer'. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20547
[Bug c++/20549] [3.4/4.0/4.1 Regression] ICE in resolve_overloaded_unification on invalid code
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-20 14:00 --- Here is the error message: pr20549.C: In function 'void popSlot()': pr20549.C:12: internal compiler error: in resolve_overloaded_unification, at cp/pt.c:9579 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- What|Removed |Added Summary|[3.4/4.0/4.1 Regression] ICE|[3.4/4.0/4.1 Regression] ICE |on invalid code,|in ||resolve_overloaded_unificati ||on on invalid code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20549
[Bug c++/4882] fails to lookup a template specialization dependent of an outer template
--- Comment #9 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:55 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4882
[Bug c++/8355] befriending a template specialization in another namespace
--- Comment #5 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:56 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8355
[Bug c++/10574] Partial specialization selection failure involving a default template parameter from inside a template
--- Comment #5 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:56 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10574
[Bug c++/13088] templatizing outer class hides specialization of inner template class
--- Comment #25 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:57 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13088
[Bug c++/13166] DR136 not implemented
--- Comment #6 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:57 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13166
[Bug c++/14032] non type boolean template argument partial specialization to argument in parent never matches
--- Comment #7 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:57 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14032
[Bug c++/17122] Unable to compile friend operator within template
--- Comment #8 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:58 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17122
[Bug c++/20420] Incorrectly Accepts double declarations
--- Comment #3 from lerdsuwa at gcc dot gnu dot org 2005-10-22 13:58 --- Won't work on it for a long while. -- lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20420
[Bug c++/18681] [3.3/3.4/4.0/4.1 Regression] template friend declaration not recognized
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-04-23 15:28 --- The TYPE_NO_ACCESS_CHECK_P is there because we check access on each tsubst TYPENAME_TYPE, regardless whether the typename is actually appear in the code or it come from a typedef. The patch was only intended for 4.0. For mainline, I am working on the approach I mention as a stage 2 project. Still need some more time to finish it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681
[Bug c++/16617] Fail to do access checking correctly for non-dependent qualified-id
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-04-23 15:30 --- This is a stage 2 project. Likely to be fixed in a month or two. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16617
[Bug c++/19772] [3.4/4.0/4.1 Regression] crash on invalid template friend decl
-- What|Removed |Added Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19772
[Bug c++/21008] [3.4/4.0/4.1 Regression] Acess failure in accessing data member of base class from derived template class
-- What|Removed |Added CC||lerdsuwa at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21008
[Bug c++/21312] [3.4/4.0/4.1 Regression] Access violation diagnostic given twice
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-08 08:12 --- Confirmed -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-05-08 08:12:29 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21312
[Bug c++/21312] [3.4/4.0/4.1 Regression] Access violation diagnostic given twice
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-08 08:13 --- Got it -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21312
[Bug c++/21312] [3.4/4.0/4.1 Regression] Access violation diagnostic given twice
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-14 12:00 --- Patch for 4.1 submitted: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01322.html It requires another patch from me: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01320.html Won't fix in 3.4. A stripped down version is possible for 4.0 (adding ACCESS tree node, only used in enforce_access and not in semantics.c and parser.c). -- What|Removed |Added Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21312
[Bug c++/21543] Full specialization of templates not supported in classes
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 11:21 --- >From 14.7.2 [temp.expl.spec] paragraph 2: An explicit specialization shall be declared in the namespace of which the template is a member, or, for member templates, in the namespace of which the enclosing class or enclosing class template is a member. ... -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21543
[Bug c++/19073] cp_binding_level::names not returning all decls
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 11:46 --- Some comment: This cp_binding_level::names and how it is used are internal to GCC. Too bad -fdump-translation-unit relies on it. Names are placed in cp_binding_level::names only if it may be needed there in the future. Perhaps a solution would be adding every name there when -fdump-translation-unit is given (at the expense of some extra memory consumption, slower compilation). -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-05-15 11:46:40 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19073
[Bug c++/21510] Possible bug
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 12:37 --- The code is invalid. In the section 14.8.2 [temp.deduct] paragraph 2 of the standard does not include creating a class with invalid base class. Examples of valid SNINF cases: - Attempting to create an array with an element type that is void, a function type, or a reference type, or attempting to create an array with a size that is zero or negative. - Attempting to use a type that is not a class type in a qualified name. etc. (there are many more they are clearly mentioned in the mentioned part of standard) -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21510
[Bug c++/21555] name lookup / friend function
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 12:41 --- Confirmed. I think the declaration int swap(A&, A&); should be accepted. Could be something wrong with the type computation to select overloaded function. -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-05-15 12:41:21 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21555
[Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 14:11 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-05-15 14:11:00 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491
[Bug c++/20475] static_cast falsely allows const to be cast away
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-15 14:36 --- Yup, string literal should have type 'const char *'. -- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2005-05-15 14:36:54 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20475
[Bug c++/21008] [3.4/4.0/4.1 Regression] [DR515] Access failure in accessing data member of base class from derived template class
-- What|Removed |Added Summary|[3.4/4.0/4.1 Regression]|[3.4/4.0/4.1 Regression] |Acess failure in accessing |[DR515] Access failure in |data member of base class |accessing data member of |from derived template class |base class from derived ||template class http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21008
[Bug c++/18681] [3.3/3.4/4.0/4.1 Regression] template friend declaration not recognized
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-19 17:07 --- Patch using new approach for 4.1: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01992.html (Note this is part 4 in a series, earlier parts are also required) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681
[Bug c++/16617] Fail to do access checking correctly for non-dependent qualified-id
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-19 17:09 --- Patch using new approach for 4.1: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01992.html (Note this is part 4 in a series, earlier parts are also required) -- What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- ||patches/2005- ||05/msg01992.html Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16617
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-20 17:42 --- Also fixed in 4.0.1. -- What|Removed |Added Target Milestone|4.1.0 |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/13830] Invalid covariant type for identical type, friend related
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-22 11:42 --- Also fixed in GCC 4.0.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13830
[Bug c++/15453] Friend declaration treated as a declaration in scope.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-05-22 11:43 --- Also fixed in GCC 4.0.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453
[Bug c++/21312] [3.4/4.0/4.1 Regression] Access violation diagnostic given twice
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-06-07 14:57 --- Patch withdrawn due to overlooking default function argument and default template argument. No nice solution is found yet. -- What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW Keywords|patch | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21312
[Bug c++/18681] [3.4/4.0/4.1 Regression] template friend declaration not recognized
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-06-07 14:57 --- Patch withdrawn due to overlooking default function argument and default template argument. No nice solution is found yet. -- What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW Keywords|patch | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681
[Bug c++/16617] Fail to do access checking correctly for non-dependent qualified-id
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-06-07 14:58 --- Patch withdrawn due to overlooking default function argument and default template argument. No nice solution is found yet. -- What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW Keywords|patch | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16617
[Bug c++/10108] tree checking ICE: expected var_decl, have error_mark in tsubst_decl
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10108 lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED --- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-07-15 12:28 --- Patch in progress.
[Bug c++/10583] [3.4 regression] ICE in cp_parser_template_id with missing typename to refer to nested struct
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10583 lerdsuwa at gcc dot gnu dot org changed: What|Removed |Added CC||gccbugs at contacts dot ||eelis dot net --- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-10-19 13:47 --- *** Bug 11862 has been marked as a duplicate of this bug. ***
[Bug c++/19004] [3.4/4.0 regression] ICE in uses_template_parms at cp/pt.c:4860
-- What|Removed |Added AssignedTo|lerdsuwa at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19004
[Bug c++/18733] [4.0 Regression] friend rejected
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-17 16:44 --- The patch looks correct although the code is messy. With the patch, when is_friend is true and processing_specialization is false, we no longer count the number of template header to see if there are too many - but we've already done that in cp_parser_check_template_parameters. The code duplication in cp_parser_check_template_parameters and current_tmpl_spec_kind could be removed in GCC 4.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18733
[Bug c++/18610] bad error message
-- What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed||1 Last reconfirmed|-00-00 00:00:00 |2004-12-12 14:30:14 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18610
[Bug c++/18825] [4.0 Regression] ICE segmentation fault in wv2
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-15 15:22 --- Fixed. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18825
[Bug c++/19004] [3.4/4.0 regression] ICE in uses_template_parms at cp/pt.c:4860
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-16 14:55 --- This should be ice-on-invalid-code. The code: bar()(); must be replaced with: bar<&Dummy::evil>()(); because 'evil' alone is not a valid pointer-to-member function. GCC compiles file with the corrected code. -- What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19004
[Bug c++/18681] [3.3/3.4/4.0 Regression] template friend declaration not recognized
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-21 15:50 --- Revised patch for 4.0 posted: http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01634.html -- What|Removed |Added Keywords||patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681
[Bug c++/18698] [3.4/4.0 regression] Error message using "using" for code not using "using" ;-)
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-23 15:34 --- The error message shows 'using-declaration' while it is actually an 'access-declaration' (section 11.3 in the standard). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18698
[Bug c++/13830] Invalid covariant type for identical type, friend related
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-28 15:29 --- The patch for PR1016 will also fix this bug. That patch is ready and the plan is getting it in after GCC 4.0 is branched. I am closing this as a duplicate. *** This bug has been marked as a duplicate of 1016 *** -- What|Removed |Added BugsThisDependsOn||1016 Status|ASSIGNED|RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13830
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-28 15:29 --- *** Bug 13830 has been marked as a duplicate of this bug. *** -- What|Removed |Added OtherBugsDependingO||13830 nThis|| CC||mattyt-bugzilla at tpg dot ||com dot au http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/12944] [meta-bug] C++ name-lookup problems
-- Bug 12944 depends on bug 13830, which changed state. Bug 13830 Summary: Invalid covariant type for identical type, friend related http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13830 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944
[Bug c++/15453] Friend declaration treated as a declaration in scope.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-28 15:30 --- The patch for PR1016 will also fix this bug. That patch is ready and the plan is getting it in after GCC 4.0 is branched. I am closing this as a duplicate. *** This bug has been marked as a duplicate of 1016 *** -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453
[Bug c++/1016] [DR 166] friend class declarations not observing namespace rules.
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-28 15:30 --- *** Bug 15453 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016
[Bug c++/16995] [meta-bug] C++ friend injection
-- Bug 16995 depends on bug 15453, which changed state. Bug 15453 Summary: Friend declaration treated as a declaration in scope. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16995
[Bug c++/12944] [meta-bug] C++ name-lookup problems
-- Bug 12944 depends on bug 15453, which changed state. Bug 15453 Summary: Friend declaration treated as a declaration in scope. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15453 What|Old Value |New Value Status|ASSIGNED|RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944
[Bug c++/19188] friend funtion inside a template class seems to have a problem
--- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-29 14:20 --- Not a bug. You have to replace the code at line 68: tstack::link* p; with typename tstack::link* p; Check out the web page <http://gcc.gnu.org/gcc-3.4/changes.html> and search for "You mustnow use the typename and template" ... for more information. There have been a lot of changes to the C++ language since the old days and this is one of them. -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19188