public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48166] New: ICE on static member function with invalid type qualifier
@ 2011-03-17 12:53 martin.kronbichler at it dot uu.se
2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: martin.kronbichler at it dot uu.se @ 2011-03-17 12:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Summary: ICE on static member function with invalid type
qualifier
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: martin.kronbichler@it.uu.se
Using gcc version 4.6.0 20110317 (svn revision 171087) on x86-64 Linux with the
code
struct foo {
static void func ();
};
void foo::func () const {};
and compile line "g++ -c test_static.cc" gives the following:
test_static.cc:4:19: internal compiler error: in merge_types, at
cp/typeck.c:825
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The code is clearly invalid (g++ 4.5 indeed gives the following error message:
"test_static.cc:4:19: error: static member function ‘void foo::func()’ declared
with type qualifiers"), but g++ 4.6 returns with an ICE.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
@ 2011-03-17 13:19 ` redi at gcc dot gnu.org
2011-03-17 13:29 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-17 13:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.17 13:13:26
Summary|ICE on static member |[4.6/4.7 Regression] ICE on
|function with invalid type |static member function with
|qualifier |invalid type qualifier
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-17 13:13:26 UTC ---
confirmed as a regression
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
@ 2011-03-17 13:29 ` rguenth at gcc dot gnu.org
2011-03-17 13:31 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-17 13:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.5.2
Target Milestone|--- |4.6.0
Known to fail| |4.6.0
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-17 13:28:30 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
2011-03-17 13:29 ` rguenth at gcc dot gnu.org
@ 2011-03-17 13:31 ` jakub at gcc dot gnu.org
2011-03-17 14:25 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-17 13:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-17 13:31:04 UTC ---
Caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159598
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
` (2 preceding siblings ...)
2011-03-17 13:31 ` jakub at gcc dot gnu.org
@ 2011-03-17 14:25 ` jason at gcc dot gnu.org
2011-03-17 16:05 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-17 14:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
` (3 preceding siblings ...)
2011-03-17 14:25 ` jason at gcc dot gnu.org
@ 2011-03-17 16:05 ` jason at gcc dot gnu.org
2011-03-25 19:54 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-17 16:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-17 16:02:18 UTC ---
Author: jason
Date: Thu Mar 17 16:02:08 2011
New Revision: 171103
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171103
Log:
PR c++/48166
* decl.c (revert_static_member_fn): Strip function-cv-quals.
Added:
trunk/gcc/testsuite/g++.dg/parse/memfnquals1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
` (4 preceding siblings ...)
2011-03-17 16:05 ` jason at gcc dot gnu.org
@ 2011-03-25 19:54 ` jakub at gcc dot gnu.org
2011-03-29 16:23 ` jason at gcc dot gnu.org
2011-03-29 16:32 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-25 19:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.0 |4.6.1
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-25 19:51:56 UTC ---
GCC 4.6.0 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
` (5 preceding siblings ...)
2011-03-25 19:54 ` jakub at gcc dot gnu.org
@ 2011-03-29 16:23 ` jason at gcc dot gnu.org
2011-03-29 16:32 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-29 16:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-29 16:07:20 UTC ---
Author: jason
Date: Tue Mar 29 16:07:15 2011
New Revision: 171679
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171679
Log:
PR c++/48166
* decl.c (revert_static_member_fn): Strip function-cv-quals.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/memfnquals1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48166] [4.6/4.7 Regression] ICE on static member function with invalid type qualifier
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
` (6 preceding siblings ...)
2011-03-29 16:23 ` jason at gcc dot gnu.org
@ 2011-03-29 16:32 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-29 16:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48166
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-29 16:08:33 UTC ---
Fixed for 4.6.1.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-03-29 16:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 12:53 [Bug c++/48166] New: ICE on static member function with invalid type qualifier martin.kronbichler at it dot uu.se
2011-03-17 13:19 ` [Bug c++/48166] [4.6/4.7 Regression] " redi at gcc dot gnu.org
2011-03-17 13:29 ` rguenth at gcc dot gnu.org
2011-03-17 13:31 ` jakub at gcc dot gnu.org
2011-03-17 14:25 ` jason at gcc dot gnu.org
2011-03-17 16:05 ` jason at gcc dot gnu.org
2011-03-25 19:54 ` jakub at gcc dot gnu.org
2011-03-29 16:23 ` jason at gcc dot gnu.org
2011-03-29 16:32 ` jason at gcc dot gnu.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).