public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
@ 2008-02-23 18:58 reichelt at gcc dot gnu dot org
2008-02-23 18:58 ` [Bug c++/35324] " reichelt at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:58 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet is accepted since GCC 3.4.0:
=========================================
template<int> struct A {};
template<typename> struct B : A<sizeof(0=0)> {};
=========================================
Before the code was correctly rejected, although the error message
couldn't be printed:
bug.cc:3: sorry, unimplemented: `modop_expr' not supported by dump_expr
bug.cc:3: sorry, unimplemented: `modop_expr' not supported by dump_expr
--
Summary: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof
not rejected in template
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: accepts-invalid, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
@ 2008-02-23 18:58 ` reichelt at gcc dot gnu dot org
2008-02-24 22:09 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 18:58 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
2008-02-23 18:58 ` [Bug c++/35324] " reichelt at gcc dot gnu dot org
@ 2008-02-24 22:09 ` rguenth at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-24 22:09 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Priority|P3 |P2
Last reconfirmed|0000-00-00 00:00:00 |2008-02-24 22:08:42
date| |
Target Milestone|4.1.3 |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
2008-02-23 18:58 ` [Bug c++/35324] " reichelt at gcc dot gnu dot org
2008-02-24 22:09 ` rguenth at gcc dot gnu dot org
@ 2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2008-07-04 23:01 ` [Bug c++/35324] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jsm28 at gcc dot gnu dot org 2008-05-19 20:25 -------
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.4 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 23:01 ` jsm28 at gcc dot gnu dot org
2008-07-30 12:40 ` jakub at gcc dot gnu dot org
2008-07-31 5:12 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 23:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jsm28 at gcc dot gnu dot org 2008-07-04 23:01 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression]
|Invalid argument to sizeof |Invalid argument to sizeof
|not rejected in template |not rejected in template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-07-04 23:01 ` [Bug c++/35324] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-07-30 12:40 ` jakub at gcc dot gnu dot org
2008-07-31 5:12 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-30 12:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-07-30 12:39 -------
I think there are many bugs that are only reported when a template is
instantiated, and this is just one of them.
If you add
B<int> b;
to the testcase, it will be rejected. IMHO this isn't a bug.
--
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=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/35324] [4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-07-30 12:40 ` jakub at gcc dot gnu dot org
@ 2008-07-31 5:12 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-07-31 5:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2008-07-31 05:10 -------
I agree with Jakub. Closing as INVALID.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35324
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-31 5:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 18:58 [Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template reichelt at gcc dot gnu dot org
2008-02-23 18:58 ` [Bug c++/35324] " reichelt at gcc dot gnu dot org
2008-02-24 22:09 ` rguenth at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2008-07-04 23:01 ` [Bug c++/35324] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-07-30 12:40 ` jakub at gcc dot gnu dot org
2008-07-31 5:12 ` jason 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).