From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30810 invoked by alias); 23 Mar 2007 20:51:26 -0000 Received: (qmail 30770 invoked by uid 48); 23 Mar 2007 20:51:11 -0000 Date: Fri, 23 Mar 2007 20:51:00 -0000 Message-ID: <20070323205111.30769.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug testsuite/25241] DejaGNU does not distinguish between errors and warnings In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janis at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02258.txt.bz2 ------- Comment #31 from janis at gcc dot gnu dot org 2007-03-23 20:51 ------- As for the puzzle in comment #30, I don't understand it either, but didn't try very hard. This works for the current testsuite and the patch: struct g g2 = { { 0, { 1 } } }; /* { dg-error "nested context.*g2.f.x" "nested" } */ struct h { int x[0]; int y; }; struct h h1 = { { 0 }, 1 }; /* { dg-warning "excess elements.*h1.x" "before end" } */ If you think it's important, Manuel, I'll try to figure out what was happening. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241