This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52742] Initializing an array using brace initializer and template parameters
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 16:43:47 +0000
- Subject: [Bug c++/52742] Initializing an array using brace initializer and template parameters
- Auto-submitted: auto-generated
- References: <bug-52742-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52742
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-29
Ever Confirmed|0 |1
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-29 16:43:47 UTC ---
To wit:
void foo() {
new int[1] {1};
}
template<int A>
void goo() {
new int[1] {1};
}
int main() {
foo();
goo<1>();
}