[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#59992] [PATCH 1/2] tests: Fix 'type defaults' error in link_cond du
From: |
Zack Weinberg |
Subject: |
[bug#59992] [PATCH 1/2] tests: Fix 'type defaults' error in link_cond due to main not being properly declared |
Date: |
Thu, 15 Dec 2022 08:16:54 -0500 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 |
On Thu, Dec 15, 2022, at 2:12 AM, Frederic Berat wrote:
> For the record:
>
> cat > less.c <<'END'
> /* Valid C but deliberately invalid C++ */
> int main (void)
> {
> int new = 0;
> return new;
> }
> END
>
> $> g++ less.c
> less.c: In function ‘int main()’:
> less.c:4:7: error: expected unqualified-id before ‘new’
> 4 | int new = 0;
> | ^~~
> less.c:5:13: error: expected type-specifier before ‘;’ token
> 5 | return new;
> | ^
Thanks, I haven't had time to look this up myself. Please go ahead and commit
the patch.
zw
[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors, Frederic Berat, 2022/12/12
[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors, Frederic Berat, 2022/12/15
[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors, Zack Weinberg, 2022/12/28
[bug#59993] [PATCH v2 2/3] tests: Fix implicit function declaration errors, Frederic Berat, 2022/12/16
[bug#59993] [PATCH v2 3/3] tests: Fix implicit function declaration in ax/depcomp.sh, Frederic Berat, 2022/12/16