This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35324] [4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2008 12:39:24 -0000
- Subject: [Bug c++/35324] [4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template
- References: <bug-35324-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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