------- Comment #9 from bangerth at gmail dot com 2009-01-28 17:27 ------- Created an attachment (id=17203) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17203&action=view) Failing testcase
Richard, I hate to break the news to you but there are even more cases. Attached is a file that produces this warning: ---------------------------- dof_renumbering.ii:51892: warning: '<anonymous>' may be used uninitialized in this function dof_renumbering.ii:51892: note: '<anonymous>' was declared here ---------------------------- The warning comes from using the unnamed object 'dfs_visitor()', which is of this type: ---------------------------- struct empty {}; struct dfs_visitor { dfs_visitor() { } dfs_visitor(empty vis) : m_vis(vis) { } empty m_vis; }; ------------------- I wished I could come up with a smaller testcase, this one is fairly lengthy, though everything of importance happens in the last 20 or so lines. Best Wolfgang -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38908